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).
2 Answers
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.
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
-
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.– joanCommented Jan 19, 2015 at 10:21