There is no USPS pickup on Monday Feb 15th, 2016 because of President's Day. USPS orders placed after 11am EST Fri February 12th will go out Tuesday February 16. UPS orders will ship as normal.

How to use GPB0 - 7
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

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

rahatmaini
 
Posts: 168
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.

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

Please be positive and constructive with your questions and comments.