Hello,
I'm trying to use the Encoder.h library with Teensy. The program compiles without any errors and sort of works but not very reliably. I am using a standard rotary encoder and connecting the output of the encoder directly to pins 7 and 8.
My code monitors the encoder in a loop and does a serial print on whether it is turned clockwise or counter clockwise. So, when I turn the encoder in one direction, it reports the wrong direction about 25% of the time. Has anyone here encountered a similar problem?
I'm trying to use the Encoder.h library with Teensy. The program compiles without any errors and sort of works but not very reliably. I am using a standard rotary encoder and connecting the output of the encoder directly to pins 7 and 8.
My code monitors the encoder in a loop and does a serial print on whether it is turned clockwise or counter clockwise. So, when I turn the encoder in one direction, it reports the wrong direction about 25% of the time. Has anyone here encountered a similar problem?