I2C slave?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
tuupola
Posts: 46
Joined: Sun Sep 17, 2017 12:10 am

I2C slave?

Post by tuupola » Fri Oct 20, 2017 6:20 pm

Looking at docs and source it seems ESP32 port does not support I2C slave mode? Pyboard seems to have support. Are there any plans on implementing it in ESP32 port in nearby future?

loboris
Posts: 272
Joined: Fri Oct 02, 2015 6:19 pm

Re: I2C slave?

Post by loboris » Sat Oct 21, 2017 6:41 pm

I2C slave is supported in esp-idf.
I'm planning to add hardware I2C slave support in my Micropython port the next month.

User avatar
devnull
Posts: 225
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

Re: I2C slave?

Post by devnull » Sun Nov 19, 2017 6:47 am

I2C slave is supported in esp-idf.
I'm planning to add hardware I2C slave support in my Micropython port the next month.
Hi Loboris;

You mentioned that you were going to add the I2C Slave Mode, is this likely to happen any time soon ?

Thanks

User avatar
tuupola
Posts: 46
Joined: Sun Sep 17, 2017 12:10 am

Re: I2C slave?

Post by tuupola » Sun Nov 19, 2017 8:05 am

I played around with with esp-idf and created a couple of I2C slaves. They seem to work well. Only problem is though, that since ESP32 has hardware I2C implementation and there is only two I2C busses the slave can only listen at two I2C addresses. I do not know if there is a way around this other than creating a software I2C slave implementation.

In any case I also would be interested this supported in Micropython.

Post Reply