Firmware
This might look intimidating at first. Sub-sections cover the most common progressions through the state chart.
The state machine in main().¶
main()