// Example of a simple IF / ELSEIF /ELSE statement. // Change the value of "x" above and rerun code to see which of // the IF, ELSEIF and ELSE statement based on what value of "x" is.
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?