-
Hi :) I know that you have an example for RotEncoders connected to a MCP but my pin configuration is a bit different so it's not working for me sadly.
already tried to configure them manually but it's not working:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Unfortunately, you cannot use the |
Beta Was this translation helpful? Give feedback.
-
Sadly that's not possible. But you already have an example for the MCP with 8 encoders, maybe you can hint me how to edit the class to use my pin configuration? |
Beta Was this translation helpful? Give feedback.
-
e.g. skipping pin 0,3,6,9,12,15 (the Button pins) |
Beta Was this translation helpful? Give feedback.
It's probably easiest to use the
MCP23017
class, and then read the encoder pins manually usingdigitalReadBuffered()
. Once you have the state of all encoder pins, you can pass it toRegistersEncoders::update()
. You can find some inspiration in https://tttapa.github.io/Control-Surface-doc/Doxygen/d6/dd2/Pin-Change-Interrupt-Encoders_8ino-example.html.