Rust project for the Arduino Uno with phototransistor inputs.
I needed to place the phototransistors more apart than in the chapter blueprint. This created the space to be able to use the color filters.
Normally I don't like leaving commented out code in the repo... maybe the path of my stumble to get the exercise working is better documented with the commented out println
.
-
Install prerequisites as described in the
avr-hal
README (avr-gcc
,avr-libc
,avrdude
,ravedude
). -
Run
cargo build
to build the firmware. -
Run
cargo run
to flash the firmware to a connected board. Ifravedude
fails to detect your board, check its documentation at https://crates.io/crates/ravedude. -
ravedude
will open a console session after flashing where you can interact with the UART console of your board.