PaulStoffregen / Encoder

Quadrature Encoder Library for Arduino
http://www.pjrc.com/teensy/td_libs_Encoder.html
540 stars 239 forks source link

Contact Bounce #55

Open trlafleur opened 4 years ago

trlafleur commented 4 years ago

Is there a way to provide contact bounce checking one the encoder pins with this library??

thanks

FrankBoesing commented 4 years ago

Please try this debounced variant: https://github.com/FrankBoesing/EncoderBounce

drf5n commented 3 years ago

One means of debouncing noisy human interface encoder knobs like KY-040, would be use the low performance polling mode by specifying non-interrupt pins, or disabling the interrupts with #define ENCODER_DO_NOT_USE_INTERRUPTS per https://github.com/PaulStoffregen/Encoder/blob/master/examples/NoInterrupts/NoInterrupts.pde