mirror of
https://github.com/Derisis13/AT-VFD.git
synced 2025-12-06 19:32:49 +01:00
* Feature: `set_ports()` for setting GP ports * Change: removal of `static` and `inline` keywords to enable going library
20 lines
270 B
C
20 lines
270 B
C
#define F_CPU 8000000UL
|
|
#include <avr/io.h>
|
|
#include <util/delay.h>
|
|
#include "PT6302.h"
|
|
|
|
/* PT6302 commands */
|
|
static const uint8_t lighton = 0x72;
|
|
static const uint8_t lightoff = 0x71;
|
|
|
|
|
|
int main ()
|
|
{
|
|
PT6302_startup ();
|
|
set_ports (1, 1);
|
|
while (1)
|
|
{
|
|
|
|
}
|
|
}
|