RotaryEncoderPoll_CW

Debounce the PEC11L rotary encoder of the KY-040 module (no interrupts are used).

Author
Oliver Pfister
Website
https://github.com/contaware/RotaryEncoderPoll_CW
Category
Signal Input/Output
License
MIT
Library Type
Contributed
Architectures
Any

The read() function is continuously polled in your loop(), it will return 1 or -1 (depending from the direction) with each rotation tick and 0 if not rotating.

Downloads

Filename Release Date File Size
RotaryEncoderPoll_CW-1.0.0.zip 2026-05-26 351.40 KiB