A simple traffic light for the Arduino Uno in Rust.
|
|
há 3 meses atrás | |
|---|---|---|
| .cargo | há 4 meses atrás | |
| src | há 3 meses atrás | |
| .gitignore | há 4 meses atrás | |
| Cargo.lock | há 4 meses atrás | |
| Cargo.toml | há 4 meses atrás | |
| LICENSE-MIT | há 4 meses atrás | |
| README.md | há 4 meses atrás | |
| Ravedude.toml | há 3 meses atrás | |
| rust-toolchain.toml | há 4 meses atrás |
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)