Blink the LED on the Arduino Uno with Rust and Cargo
Features:
The code is written completely in Rust and a small amount of assembly! We avoid using any of the GCC startup files.
See the official blink example, which makes use of some GCC-provided code.
Follow the official instructions to install avr-gcc
and
avrdude
. Additionally install picocom. For example, using
Homebrew:
brew install picocom
avr-gcc
is used as the linker, avrdude
uploads the finished
code, and picocom is used as the serial terminal.
Build the code: make
Upload the code: make program
Connect the serial terminal: make connect-terminal