Class and example for the PCF8574
The PCF8574 is an 8 bit In/Output expander chip that uses I2C to talk with the microprocessor.
Note that the PCF8574 outputs can only supply a very small amount of current when set high but can handle much more when set low. If driving LEDs you should treat the outputs as if they are open collector.