0xPIT / encoder

Atmel AVR C++ RotaryEncoder Implementation
309 stars 162 forks source link

Missing click #25

Open ghost opened 6 years ago

ghost commented 6 years ago

Using Arduino ProMicro some clicks from the push button were not detected. This solved the problem in the example : ... ClickEncoder::Button b = encoder->getButton(); delayMicroseconds(5); // added small delay to avoid missing click if (b != ClickEncoder::Open) { ...

soligen2010 commented 6 years ago

Just FYI, My fork of this library has a number of bug fixes and enhancements. I had this experience too and fixed it, but it was a different fix than what you have. Perhaps it is the same issue or perhaps not. If you like, you can try my fork and see if it works for you.