Introduction - If you have any usage issues, please Google them yourself
I2C communication with a PCF8574 in read and write mode is
demonstrated. PCF8574 port P is configured with P0-P3 input, P4-P7. Read
P0-P3 input data is written back to Port P4-P7. This example uses the
RX ISR and generates an I2C restart condition while switching from
master receiver to master transmitter.LED toggles inside ISR.