Rust and Cargo program for Arduino Uno
Features:
- 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.
High-level instructions
-
Follow the official instructions to install
avr-gccandavrdude. Additionally install picocom. For example, using Homebrew:brew install picocomavr-gccis used as the linker,avrdudeuploads 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
Description
No description provided
https://github.com/shepmaster/rust-arduino-blink-led-no-core-with-cargo
Languages
Rust
82.4%
Assembly
14.7%
Makefile
2.8%