ESP32 as I2C Slave: how to determine read vs write?

tschak909
Posts: 36
Joined: Mon Oct 26, 2020 8:17 pm

ESP32 as I2C Slave: how to determine read vs write?

Postby tschak909 » Mon Feb 13, 2023 12:46 am

Hi.

I am currently doing a #FujiNet bring-up for the Commander X16 computer, and am currently attempting to use the I²C bus to do so.

I have the ESP32 and X16 talking back and forth, but have a question:

How can I tell that a read vs. a write operation to an address has taken place, so that I can reliably process a large queue of I²C packets, without relying on using a really small buffer and trying to determine via length?

-Thom

Who is online

Users browsing this forum: No registered users and 178 guests