This is a basic template that builds on this template from the mighty Rahix themself.
Specifically:
- Generic rust nightly instead.
- Debug symbols disabled in debug mode.
- No license or any extra files, meant to Just Work™.
First time use:
- Install the arduino stuff:
avr-gcc,avrdude,avr-binutils, etc. - Have rust nightly installed.
sh <(curl https://raw.githubusercontent.com/davnotdev/rust_arduino_uno_template/main/init)If you don't have curl or the init script fails (you don't see the finish message) , do the following:
- Clone this repo.
- Delete
initand this file. - Modify Cargo.toml.
- Switch to rust nightly if you haven't already.
- Enjoy!
cargo r will flash to the arduino. (Isn't that neat.)