RaspiHub for the latest Raspberry Pi news    
<style> body.view_post { overflow: auto; padding: 0 20px; } body.view_post #raspihub_toolbar { padding: 0 20px; margin-left: -20px; margin-right: -20px; } </style> <div> <h1>Interfacing an I2C GPIO expander (MCP23017) to the Raspberry Pi using C++ (SYSFS)</h1> <p>We like Python but here are some examples for an I2C port expander in C++: The I2C bus is a two wire bus developed by Phillips/NXP (4-wire if you want to include power and ground), that is used to connect a single master device to up to 120+ slave periphe</p> <p>Your browser doesn't support frames, here's the link <a href="http://www.adafruit.com/blog/2013/04/05/interfacing-an-i2c-gpio-expander-mcp23017-to-the-raspberry-pi-using-c-sysfs/" rel="nofollow">http://www.adafruit.com/blog/2013/04/05/interfacing-an-i2c-gpio-expander-mcp23017-to-the-raspberry-pi-using-c-sysfs/</a></p> </div>