Set address and power
Ground the address pins, use a shared 5 V domain and bypass the supply.
Build a basic PCF8574 circuit with labeled pins, component values and connection guidance.
One output, one input and an interrupt line.
Follow the component values and pin connections
Ground the address pins, use a shared 5 V domain and bypass the supply.
Write FE for the LED on and FF for off; P1 remains HIGH in either write.
Read bit 1 when polling or servicing INT, and debounce in firmware.