Fixed compilation errors. Turned on optimization for size. Added gitignore

This commit is contained in:
2022-11-04 02:48:35 +02:00
parent 365d906890
commit ca40b8d0eb
3 changed files with 26 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ all:
make build
make program
build:
avr-gcc main.c i2c_master.c -o counter -mmcu=attiny84 -Wall -Wextra
avr-gcc main.c i2c_master.c -o counter -mmcu=attiny84 -Wall -Wextra -Os
program:
avrdude -p attiny84 -c usbtiny -U flash:w:counter