This project implements project 5 of the arduino book (mood cue).
- clone this repo
- make sure you have the avr compiler and ravedude installed, checkout
https://github.com/Rahix/avr-hal for more info. P.S. on a mac you can install
the avr compiler with
brew
so just have a google. - With your arduino plugged in, run
cargo run --release
. The dev build doesn't work due to some issues with compiler builtins.
To set it up, I tried to replicate as many settings as possible from https://github.com/Rahix/avr-hal. This meant setting up the following files correctly:
- .cargo/config.toml (copied from https://github.com/Rahix/avr-hal)
- rust-toolchain.toml (copied from https://github.com/Rahix/avr-hal)
- cargo.toml (copied some stuff from https://github.com/Rahix/avr-hal)
- avr-atmega328p.json (copied from https://github.com/Rahix/avr-hal)