ESP32 as an i2c slave: how to set the address?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
enzo
Posts: 40
Joined: Thu Jun 11, 2020 1:03 am

Re: ESP32 as an i2c slave: how to set the address?

Post by enzo » Tue Apr 06, 2021 11:19 pm

pythoncoder wrote:
Mon Apr 05, 2021 8:54 am
Using slave mode is quite difficult because of the way it is implemented. The slave has to be waiting on a transfer before the master will get a response. This doc describes the issue. What is needed is an asynchronous slave mode. It is possible that threading could be used to achieve this, but there is a question-mark over performance and I haven't tried it.

The Loboris port is abandonware. It is based on a long-superseded version of firmware and is effectively unsupported.
So the only way is using the ESP as master, sending an inquiry to the slave (an Arduino Nano in my case) and waiting for its response.
I'll go so.
Thanks to everybody for help!

Post Reply