I2C master + slave on same pins

MalteJ
Posts: 62
Joined: Wed Sep 21, 2016 10:26 pm

I2C master + slave on same pins

Postby MalteJ » Fri Aug 25, 2017 9:18 am

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

Who is online

Users browsing this forum: Bing [Bot] and 113 guests