Page 1 of 1

I2C master + slave on same pins

Posted: Fri Aug 25, 2017 9:18 am
by MalteJ
Hi,

is it possible to run an I2C master and slave on the same pins?
Additionally to the esp32 I have multiple I2C slave sensors on my bus and I have another microcontroller on the bus. The other microcontroller should act as a master and write to the slave esp32. But the esp32 should be able to read the slave sensors, so sometimes it has to be a master.

Can I simply do two i2c_driver_install calls with different i2c_num but the same pins but configured as slave and as master?

Thank you!

Best,
Malte