i2c slave

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

i2c slave

Postby chegewara » Mon Oct 25, 2021 1:30 am

Hi,
i have quick and important question.
Is it possible to use esp32 i2c slave with register, like other sensors?
I may have doing something wrong, but when i am trying to do it the master (also esp32) is receiving old data, one read request old.
I dont have problems with write requests, because i am getting data packet with register at byte 0 and data from byte 1.
With read request, i am getting 1 byte, then i am using "i2c_slave_write_buffer" to set values, but before the values are set master already read data from fifo.

Who is online

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