PCF8574AN configured as output for relay

thanks for the example, that works fine as i expected.

but the question are still here.

it must switch a relay ON or OFf and not flashing hihi.
just to test the code i have used a LED