Files
AT-VFD/PT6302.h
Derisis13 60a7b1309e * optimisation: -C3 compiler flag for optimised size
* 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
2022-03-02 23:47:26 +01:00

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_