So, I have a board with a PCF8574 (this one: http://parts.digikey.com/1/parts/498454-ic-i-o-expander-i2c-8b-20tssop-pcf8574pwr.html).
All 8 pins are set as outputs and each one controls a MosFET which turns on random DC devices like water valves and such.
The problem I have is, the PCF8574 defaults to INPUT on startup which is turning on my MosFETs until my program has enough time to start, begin i2C and set all the pins to OUTPUTS. This can take less than a second to almost 2 seconds. Since I'm controlling water and other devices, this starts spraying water for a second or 2.
Does anyone know if there is a way to make the PCF8574 default to output LOW on power-up or any other way around this?
Thanks for any help! Jeremy