mathertel / RotaryEncoder

RotaryEncoder Arduino Library
Other
328 stars 107 forks source link

update suggested button debounce to opt-in via define #20

Closed Ryder17z closed 3 years ago

Ryder17z commented 4 years ago

Alteration of #16 (untested)

An approach like this will not affect code size unless you opt into it.

mathertel commented 3 years ago

Many Rotary Encodes have a push button - but not all. You can combine (as I do) the RotaryEncoder library with the OneButton https://github.com/mathertel/OneButton library without any conflicts. I just like to keep the 2 functions separate.