Skip to content

Allow passing GPIOs only to allow running on GPIO Expander - #28

Merged
makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:main
Oct 22, 2025
Merged

makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:main

Conversation

@makermelissa

Copy link
Copy Markdown
Collaborator

I needed to run this through a GPIO expander (the MCP23017 in my case). However, neither the library nor busdevice allows passing anything except digitalio.DisplayInOut. These changes allow passing a DigitalInOut created by the MCP230XX library as well as controlling it just using 3 GPIO. I created an example to show usage.

@makermelissa
makermelissa requested a review from a team October 22, 2025 02:49

@FoamyGuy FoamyGuy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for adding this flexibility.

@makermelissa
makermelissa merged commit 0675a13 into adafruit:main Oct 22, 2025
1 check passed
adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 23, 2025
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