Please use avr-hal-template since it has support for more arduino boards and it is better maintained.
Bootstrap arduino projects in rust
- Init a new project using this template:
Learn how to install and more about
cargo generate --git https://github.com/HKalbasi/rust-arduino-generator
cargo generate
here. - Put your code in
src/main.rs
(see examples) - Run your code with
cargo run
🎉 (make sure you attached the arduino usb)
Make sure you have installed the version of nightly compiler specified here.