Both the camera and the expansion chip work when ran independently but not at the same time.
I've configured the camera to use I2C Port1 and PCF8574 to use Port0. The code starts with the PCF8574 doing some stuff with LEDs but as soon as it starts the camera init process it fails. It fails when running the SCCB_Probe() function where it detects the model of the connected camera sensor via I2C.
I find this puzzling since they are suppsed to be using separate I2C ports. Hopefuly someone has already been through this
For driving the PCF8574 I am using code from this repo: https://github.com/UncleRus/esp-idf-lib
Camera code: https://github.com/espressif/esp32-camera