Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.28 KB

File metadata and controls

25 lines (15 loc) · 1.28 KB

Assumes that you have gone through basic StateSmith tutorials already.

Things to notice

  • 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".

How to use

Test with Arduino or this online Arduino simulator project.

Run code gen

Run command dotnet-script code_gen.csx in this directory.

PlantUML online

See this link.