I am using encoder from the Teensyduino library on a Teensy 3.2. It works ok but I cannot figure out a way to limit the encoder limits. In other words, I want to count up to say 5 and then further positive movement of the encoder should not generate any number greater then 5. I can constrain or do similar tricks but the encoder keeps counting on internally. So I get 1,2,3,4,5,5,5,5,5, .. if I keep going. Now I if go in the reverse direction it takes a number of clicks before I finally get below 5 and then 4,3,2,1 etc..
I have using the encoder to select options off a menu and this is driving a crazy. Any ideas appreciated.
I have using the encoder to select options off a menu and this is driving a crazy. Any ideas appreciated.