I have been delving (groping blindfold, more accurately) into the Arduino compiler adaptation code to try to determine how it handles the switch-over between its pwm activities, its set-I/O-to-output ...
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?