Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

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: 18426
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY