Is it 400kHz or rather 100kHz? I ask, because I have some problem with PCF8574 port expanders, although DS3231 RTC is working fine. RTC is designed for 400kHz, expanders support only 100kHz.
I see I2C master library is a software implementation of this bus, utilizing bit banging.
Is it possible to set frequency manually?