Skip to content
New issue

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

Encoder button. #8

Open
RAJensen opened this issue Feb 16, 2020 · 0 comments
Open

Encoder button. #8

RAJensen opened this issue Feb 16, 2020 · 0 comments

Comments

@RAJensen
Copy link

Hi.
I'm building this fine piece of electronics.
But i have a little issue, The encoder that i use, have build-in RGB led and have common with the button. The encoder in schematic, is pulled high and triggers with low. Because my LED have (+) common with the button i need to change the code. But i have some trouble figuring out what is going on in ClickEncoder.h
In line 60 : ClickEncoder(uint8_t A, uint8_t B, uint8_t BTN = -1,
uint8_t stepsPerNotch = 1, bool active = LOW);

Can i change bool active = LOW to bool active = HIGH to fit to my button or will that change, also affect the encoder A/B buttons?
In advance thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant