EMBEDDED RUST · no_std → WASM
Enums: States You Cannot Get Wrong

Model the controller as an enum with exhaustive matching. The starter will not compile until every Phase is handled.

You read

register reads, timer counts, and sensor pins

You change

the firmware you write in the control loop

Fixed

the emulated chip, its peripherals, and the wiring