Fix compilation. Added programming

This commit is contained in:
DWW 2022-03-12 14:25:15 +02:00
parent 8aace49723
commit c94669f834
2 changed files with 9 additions and 2 deletions

View File

@ -668,7 +668,7 @@ void off(uint8_t count, uint8_t* idx, uint8_t colour, uint8_t led)
pgm_read_byte(&gamma8[0x00])
};
for (i = 0; i < count; ++i)
for (int i = 0; i < count; ++i)
{
send_pixel(black[0], black[1], black[2], led);
}

View File

@ -1,2 +1,9 @@
controller: ATtiny84_LED_PC.c i2c_master.c
all:
make build
make program
build:
avr-gcc ATtiny84_LED_PC.c i2c_master.c -o controller -DF_CPU=16000000 -mmcu=attiny84
program:
avrdude -p attiny84 -c usbtiny -U flash:w:controller