Fix compilation. Added programming
This commit is contained in:
parent
8aace49723
commit
c94669f834
@ -668,7 +668,7 @@ void off(uint8_t count, uint8_t* idx, uint8_t colour, uint8_t led)
|
|||||||
pgm_read_byte(&gamma8[0x00])
|
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);
|
send_pixel(black[0], black[1], black[2], led);
|
||||||
}
|
}
|
||||||
|
|||||||
9
Makefile
9
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
|
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user