I could communicate with the PCF8574, but not with a proper result. I just started with Arduino, so I'm lost...
To put in context: The key switch status that I want to read are in a multifonction module. This one do include 7 key switch, lcd, buzzser and led. The pins on the PCF8574 are maintained high with a resistor. Pressing on a switch, will put the attached pin à 0v.
Now the interogation???
On the PCF8574 Once selected, all pins goes to a low state. Pressing a switch has no effect since the pin is already put at a "0" digital state.
So I suppose that I need to put all pin to a high state (wire.write) then read back (wire.read) individual pin to decode witch one is in us.
Did not succeed to do this simple task....
Set to 1 all pin
Read back all pin
serial.println (value read from the I2C (0X20)