Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
In the sample program for the PCF8574, the address for the PCF8574 is shown as 0x20. The PCF8574 has a base address of 0x40 ( and the 74A has a base address of 0x70)
I've wired up a PCF8574 and the sample program works if you change the 0x20 to 0x40
Also, the comments indicate that the code toggles the pins. Actually, since the value sent out is only 0x0f, only port pins 0-3 actually toggle. Changing the value to 0xff makes them all toggle.