Communication example between arduino and RPi with JSON, avoiding the 32 byte limitation of I2C. RPi acts as master, arduino as slave, and the communication is made through several request: RPi asks ...
If you want to build a button array, follow this diagram. The main idea here is to connect each button to a diode in a row by column fashion, and read all the rows column by column. Rows works as ...