Added eeprom dump. Fixed incorrect reading of EEPROM

This commit is contained in:
DWW
2021-07-01 00:49:56 +03:00
parent 2bbbeec873
commit d6fa80e21f
2 changed files with 8 additions and 4 deletions

View File

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