Just need the 1/0 (pushed or not) entry. It's for a bigger projects so its gonna have a few outputs as well(not as many though).


Simplest would be to buy 4 MCP23017 I2C port expanders. Each one provides an additional 16 gpios and up to 8 may be connected to the Pi's I2C bus.

E.g. http://www.hobbytronics.co.uk/electronic-components/misc-ic/mcp23017-16bit-port-expander


you can use i2c bus expander.



  • The Adafruit article is several years out of date so be careful if you follow its advice. In particular I would suggest not using Occidentalis unless you have no other choice. – joan Jan 19 '15 at 10:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.