Simple FSM-based door lock motor controller. Opens the door lock on external signal, keeps open until reed switch detects the door is closed, then close.
Install toolchain:
apt install gcc-avr avr-libc
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
Build:
cargo build --release