awonak / libModulove

Arduino library for the hardware abstraction layer of Modulove's SyncLFO and A-RYTH-MATIK eurorack modules
https://awonak.github.io/libModulove/
MIT License
5 stars 3 forks source link

Replace SimpleRotary library with EncoderButton #3

Open awonak opened 6 months ago

awonak commented 6 months ago

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

modulove commented 6 months ago

That is what I want to get done tonight. Lets see if there is something to test this weekend.