Add files via upload

This commit is contained in:
Adam Loboda
2019-08-14 14:45:14 +02:00
committed by GitHub
parent d96821032d
commit 4bfee5afd1
2 changed files with 15 additions and 0 deletions

8
compileattiny Normal file
View File

@@ -0,0 +1,8 @@
rm *.elf
rm *.o
rm *.hex
avr-gcc -mmcu=attiny13 -std=gnu99 -Wall -Os -o main.elf main.c -w
avr-objcopy -j .text -j .data -O ihex main.elf main.hex
avr-size --mcu=attiny13 --format=avr main.elf
sudo avrdude -c usbasp -p attiny13 -U flash:w:"main.hex":a

7
main.hex Normal file
View File

@@ -0,0 +1,7 @@
:1000000009C00EC00DC00CC00BC00AC009C008C09A
:1000100007C006C011241FBECFE9CDBF02D01DC04E
:10002000EFCFBA9AC29881E093E6C29A21E020E12C
:100030002A95F1F700C02F5F8217C8F7C29821E018
:1000400020E12A95F1F700C02F5F8217C8F7915081
:0E00500061F78F5F843141F7E6CFF894FFCF60
:00000001FF