SimpleRotary relies on polling for changes, which can miss events if the main loop logic is too complex. Instead, it would be better to use interrupts to listen for encoder events. The EncoderButton is a convenience wrapper around Paul Stoffregen's Encoder library that should provide an API that's easy to migrate to.
SimpleRotary relies on polling for changes, which can miss events if the main loop logic is too complex. Instead, it would be better to use interrupts to listen for encoder events. The EncoderButton is a convenience wrapper around Paul Stoffregen's Encoder library that should provide an API that's easy to migrate to.
https://github.com/Stutchbury/EncoderButton