Adafruit MCP23017 Library Questions....

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mbramble
 
Posts: 1
Joined: Fri May 26, 2023 12:03 am

Adafruit MCP23017 Library Questions....

Post by mbramble »

I don't know if I'm blind or dumb, but I can't seem to find a function to read/write registers other that GPIOA/B. How do I go about addressing the other registers (IODIR, GPINTEN, etc.)?? I see there are functions to work with a single pin to set it's function (Input/Output, polarity, interrupt enable/disable, etc.), but nothing to address the "control" registers as units.

Any help would be most appreciated.

Library documentation
https://adafruit.github.io/Adafruit-MCP ... index.html
I have V 2.3.0 installed

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit MCP23017 Library Questions....

Post by mikeysklar »

I see the issue here.

There are docs for the MCP23017 library which are specific to your chip doing the gpioAB stuff.

There are also docs for the base class which applies to all MCP23XXX variants which have all the fun stuff you are asking about.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”