ESP32 Display Controller and Graphics Library

◆ read()

int read ( int  address,
uint8_t *  buffer,
int  size,
int  frequency = 100000,
int  timeOutMS = 50 

Receives a buffer from I2C bus.

This is a thread-safe operation. Multiple tasks can call this methods concurrently.

addressI2C address of the source slave device
bufferBuffer where to put received data (must have space for at least "size" bytes)
sizeNumber of bytes to receive. Maximum size is the return value of getMaxBufferLength().
frequencyClock frequency
timeOutMSOperation timeout in milliseconds
Number of actually read bytes

Definition at line 124 of file tsi2c.cpp.