EncoderButton
EncoderButton copied to clipboard
Change positionDivider
Hi I use a rotary encoder with 2 pulses per click. To work well with you library, I have change the ‘positionDivider’ to 2. But the solution is not that I change it in all project copy of the library.
I request two solutions for my problem:
void EncoderButton::useDoublePrecision(bool prec) { positionDivider = (prec?2:4);
or
void EncoderButton::setPulsePerClick(int p) {positionDivider = p; }
int EncoderButton::getPulsePerClick(void) {return positionDivider; }
I prefer the second solution. Thanks for your work and i hope you can make the changes.
Gfy63