Skip to content

Change positionDivider #9

Description

@Gfy63

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions