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? With my assembler code hat on, a programme counter jump-table is the obvious answer, but Arduinos use C and I …
This story continues at Arduino: switch/case of if/then(/else) for state machines
Or just read more coverage at Electronics Weekly