mathertel / RotaryEncoder

RotaryEncoder Arduino Library
Other
342 stars 107 forks source link

Does not work with ATTiny88 on pins 12 and 13 #41

Open lesrhorer opened 1 year ago

lesrhorer commented 1 year ago

I am attempting to use your encoder library on a project of mine that employs an ATTiny88 with an EC11 rotary encoder attached to pins 12 and 13.

Here is the error stack using your interrupt example: Rotary Encoder errors.txt

Here is my code, which compiles and runs without your library, but misses lots of interrupts and often reports the wrong direction: Rotary Encoder Good.txt

Note the ATTiny88 requires a slightly modified PinChangeInterrupt.h library. See https://arduino.stackexchange.com/questions/92354/change-interrupts-on-the-attiny-88