Rust and Cargo program for Arduino Uno
- Uses timer interrupts to blink the LED.
- Echos back characters sent via the built-in serial device.
- Echos back characters sent via the built-in serial device using futures.
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
avrdude. Additionally install picocom. For example, using Homebrew:
brew install picocom
avr-gccis used as the linker,
avrdudeuploads the finished code, and picocom is used as the serial terminal.
Build the code:
Upload the code:
Connect the serial terminal: