Making time for my next small Arduino project, I need to do something with the rotary encoder direction information decoded by this software. A state machine is what I need, but how to implement it?
ESPStateMachine is a typed, flat finite-state machine helper for ESP32 firmware. It models runtime behavior after your modules are already initialized: device modes, connection flows, update phases, ...