I know just enough about using the rotary encoder to be dangerous. I have a need for a very simple (to describe but not maybe to code) function that returns one of three values...
0 if the switch is triggered
-1 if turned counter clockwise
1 if turned clockwise.
This seems that it would be a simple thing to do, but I can't even figure out where to start. If anyone has seen any code that might that. I envision calling the function and it just sitting there and doing nothing until one of those three things happens, and then return the result.