* made the code leaner

This commit is contained in:
2022-03-02 20:23:20 +01:00
parent 969c273caa
commit f3bd6ecc00
3 changed files with 12 additions and 20 deletions

9
main.c
View File

@@ -1,18 +1,15 @@
#define F_CPU 8000000UL
#include <avr/io.h>
#include <util/delay.h>
#include "PT6302.h"
int main ()
{
uint8_t ledpin = (1 << PC4);
DDRC |= ledpin;
PT6302_startup ();
while (1)
{
PORTC |= ledpin;
_delay_ms (1000);
PORTC &= ~ledpin;
_delay_ms (1000);
}
}