We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Ben, Thank you for this excellent rotary encoder lib. I tried many many options and your approach is the best by far.
I did some changes to use it as a header only lib and without relying on macros, so it can be used like this:
#include <RotaryEncoder.h> Rotary<HalfStepEncoder, INPUT_PULLUP> e(9,8); void setup() { e.begin(); Serial.begin(9600); } void loop() { int dir = e.process(); if (dir == DIR_CW) { Serial.println(">>"); } else if (dir == DIR_CCW) { Serial.println("<<"); } }
The complete and compact code is here: https://gist.github.com/mnesarco/9f138cef1308904ba3050324feb0d9e6
It would be great to know your opinion.
Cheers, Frank.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi Ben,
Thank you for this excellent rotary encoder lib. I tried many many options and your approach is the best by far.
I did some changes to use it as a header only lib and without relying on macros, so it can be used like this:
The complete and compact code is here:
https://gist.github.com/mnesarco/9f138cef1308904ba3050324feb0d9e6
It would be great to know your opinion.
Cheers,
Frank.
The text was updated successfully, but these errors were encountered: