How to expand pinout using i2c bus
A total of 8 I2C Expander can be used simultaneousl, for a total of 64 additional GPIO
Note: In this image Daisy Flat Cable is connected to W4 but you can also connect to W1
This library is a simple way to expand pinout using DAISY-22.
WriteSinglePin.pde
The function Daisy22::digitalWrite() accepts as a parameter the port number and the state to write
WriteAllPins.pde
The function Daisy22::digitalWrite() accepts as a parameter 1Byte to write the all P0-P7 pins
ReadSinglePin.pde
The function Daisy22::digitalRead() accepts as a parameter the port number to read
ReadAllPins.pde
The function Daisy22::digitalRead() returns a byte corresponding to the state of all pins