Greetings,
I'm using a Teensy 3.2 and am trying to use the Encoder library with an encoder connected to pins D2 and D4. It doesn't seem to be tracking properly.
Output from Encoder -> Basic example while turning the encoder clockwise:
Looking more closely at D4, it seems to be always pulled HIGH. I tried different pins (like D3 and D12) and it worked as expected. Is there something special going on with this pin that would prevent me from using it w/ an encoder?
Many thanks!
I'm using a Teensy 3.2 and am trying to use the Encoder library with an encoder connected to pins D2 and D4. It doesn't seem to be tracking properly.
Output from Encoder -> Basic example while turning the encoder clockwise:
Code:
Encoder myEnc(2, 4);
Code:
Basic Encoder Test:
0
-1
0
-1
0
-1
Looking more closely at D4, it seems to be always pulled HIGH. I tried different pins (like D3 and D12) and it worked as expected. Is there something special going on with this pin that would prevent me from using it w/ an encoder?
Many thanks!