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

Added support for KY-040 rotary encoder #143

Merged
merged 2 commits into from
Sep 22, 2019

Conversation

gbelmont22
Copy link

I added a simple decoder class and some supporting logic to allow the use of a KY-040 Rotary Encoder in place of the Up/Down/Enter buttons. All code edits were marked //ROTARY: for easy review. The decoder class operation and implementation details are documented in the header file (dmRotary.h). The encoder can be enabled from the options.txt. A brief video of the encoder being demonstrated is available on YouTube at https://youtu.be/c83Rn3KvZ0g.

Disclaimer: This implementaton is working for me - but I'm no expert on RPi bare metal programming. Also, this code has only been tested on a RPi 3 and may or may not work on earlier models.

George Belmont and others added 2 commits September 6, 2019 07:13
@pi1541 pi1541 merged commit b782455 into pi1541:master Sep 22, 2019
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

Successfully merging this pull request may close these issues.

2 participants