mirror of
https://github.com/Derisis13/AT-VFD.git
synced 2025-12-06 19:32:49 +01:00
* bugfix: correct order of setting `DDRn` and `PORTn` * optimisation: `enum` and `static const` instead of macros * optimisation: `PT6302_startup` is now `inline` * optimisation: functions are now static * bugfix: `data` is now rotated and stored instead of just rotating * special thanks to @kissadamfkut for pointing all of this out to me
25 lines
738 B
C
25 lines
738 B
C
//
|
|
// Created by lacko on 02/03/2022.
|
|
//
|
|
|
|
#ifndef _PT6302_H_
|
|
#define _PT6302_H_
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------
|
|
* Initial setup for the VFD controller interface
|
|
* Sets up the connected pins and leaves them in inactive state.
|
|
* ------------------------------------------------------------- */
|
|
void PT6302_startup(void);
|
|
|
|
|
|
/* -------------------------------------------------------------------------------
|
|
* Transmits size byte of data through the VFD controller's interface from payload
|
|
* Handles CLKB, CSB and timing constraints
|
|
* ------------------------------------------------------------------------------- */
|
|
void transmit_bytes (const uint8_t* payload, uint8_t size);
|
|
|
|
|
|
#endif //_PT6302_H_
|