Winter Storm Juno: Blizzard! ORDERS NOT SHIPPING TODAY. All shipping and UPS service guarantees are suspended due to weather and blizzard conditions.

How to use GPB0 - 7
Moderators: adafruit_support_bill, adafruit

How to use GPB0 - 7

by rahatmaini on Sun Feb 17, 2013 10:13 pm

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 | TOGGLE FULL SIZE
mcp.pinMode(0, OUTPUT);

Now how do I use the other 8 pins of the 16 pin expander?

Thanks Adafruit

Posts: 167
Joined: Wed Aug 29, 2012 5:15 pm

Re: How to use GPB0 - 7

by adafruit_support_rick on Sun Feb 17, 2013 11:09 pm

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

Posts: 15228
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY