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.

MCP23017 port expander in C/C++?
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

MCP23017 port expander in C/C++?

by adrastos on Sat Dec 08, 2012 6:45 pm

Hey guys,

I've been using the cobbler board and a MCP23017 port expander with my pi successfully in Python, but I'm moving my code over to C/C++ for faster processing. There's a ton of documentation on using this expander with Python, but nothing that I can find in C/C++. Can anyone point me in the right direction or is this something I'm going to have to write myself?

Thanks!

adrastos
 
Posts: 53
Joined: Wed Sep 30, 2009 10:37 pm

Re: MCP23017 port expander in C/C++?

by adafruit_support_rick on Wed Dec 12, 2012 12:30 pm

The adafruit MCP23017 library is C++. Have a look - it ought to be enough to get you started

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

Please be positive and constructive with your questions and comments.