diff --git a/ATtiny84_LED_PC.c b/ATtiny84_LED_PC.c index 281d8a2..8d0965c 100644 --- a/ATtiny84_LED_PC.c +++ b/ATtiny84_LED_PC.c @@ -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); } diff --git a/Makefile b/Makefile index 52df96c..f23fab1 100644 --- a/Makefile +++ b/Makefile @@ -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