-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Hi Mike,
Firstly, thanks for an excellent MicroPython library for the rotary encoder. So many resources use Circuit Python or Arduino only, so it's great to come across this!
My issue is that I'm using an MCP 23017 to extend the number of GPIO pins. This is because I'm using a Pico to drive an LED matrix and almost all the GPIOs are used for this purpose. I have an adafruit 23017 GPIO extender board working on I2C (using QWIIC connection).
I address the pins like this (where x is the pin number I'm addressing):
mcp = mcp23017.MCP23017(i2c, 0x20)
mcp.pin(x, mode=1, pullup=True)
My tiny brain can't work out a way to use these extended GPIO pins with your Rotary Encoder module. Is this possible?
Interrupts on the extender are through 2 pins (INTA works with the first 8 pins and INTB for the second 8). I assume I need to connect these interrupt pins to a spare GPIO on the Pico itself in order to get interrupts to work?
Many thanks
Dave