A simple traffic light for the Arduino Uno in Rust.
|
2 days ago | |
---|---|---|
.cargo | 2 days ago | |
src | 2 days ago | |
.gitignore | 2 days ago | |
Cargo.lock | 2 days ago | |
Cargo.toml | 2 days ago | |
LICENSE-MIT | 2 days ago | |
README.md | 2 days ago | |
Ravedude.toml | 2 days ago | |
rust-toolchain.toml | 2 days ago |
This is a simple traffic light in Rust for the Arduino Uno.
Without interaction, it stays red. After pressing the button, first the yellow LED is turned on and after a second the green LED. A green phase lasts for 10 seconds, after which the yellow LED is turned on again. After two seconds the traffic light switches back to red.
Install prerequisites as described in the avr-hal
README.
Run cargo build
to build the firmware.
Run cargo run
to flash the firmware to a connected board. If ravedude
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.
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)