A hello blink c program for the attiny85, done in an effort to get to terms with microcontrollers out of rust. Hence when I need to debug signals I can check using this device rather than experimenting and learning completely in rust
Requirements
- avr-gcc
- avrdude
- UsbAsp Programmer for AVR
These tools are used to compile and upload code to the attiny85
Steps
- Compile with the command
avr-gcc -Os -mmcu=attiny85 main.c
- Convert executable to intel hex with
avr-objcopy -O ihex -j .text -j .data a.out a.hex
- Uplooad to attiny using USBAsp
avrdude -B4 -p t85 -c usbasp -U flash:w:a.hex:i