How to use GPB0 - 7

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
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

How to use GPB0 - 7

Post by rahatmaini »

On the MCP23017 chip, I know how to use the GPA0 - 7 expansion pins, but I do not know how to use the GPB pins.

Here is how GPA pins are initialized

Code: Select all

mcp.pinMode(0, OUTPUT); 
Now how do I use the other 8 pins of the 16 pin expander?

Thanks Adafruit

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: How to use GPB0 - 7

Post by adafruit_support_rick »

pinMode accepts pin numbers from 0 to 15. GPIOA are 0 through 7, GPIOB are 8 through 15.

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

Return to “Other Arduino products from Adafruit”