Page 1 of 1

i2c slave

Posted: Mon Oct 25, 2021 1:30 am
by chegewara
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.