Assumes that you have gone through basic StateSmith tutorials already.
- PlantUML is awesome.
- Arduino/C++ is awesome.
- Multiple state machines running at the same time (one for each button).
Visualization of ButtonSm1Cpp.puml
This is a basic button debouncing state machine that also detects when a button is "held".
Test with Arduino or this online Arduino simulator project.
Run command dotnet-script code_gen.csx
in this directory.
See this link.