A simple traffic light for the Arduino Uno in Rust.

Felix Bytow 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
.cargo 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
src 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
.gitignore 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
Cargo.lock 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
Cargo.toml 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
LICENSE-MIT 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
README.md 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
Ravedude.toml 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây
rust-toolchain.toml 4099b85132 :tada: first commit, functional traffic light 2 ngày trước cách đây

README.md

traffic-light-arduino-uno

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.

Build Instructions

  1. Install prerequisites as described in the avr-hal README.

  2. Run cargo build to build the firmware.

  3. 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.

  4. ravedude will open a console session after flashing where you can interact with the UART console of your board.

License

MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)