ESP32 Display Controller and Graphics Library

◆ write()

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

Sends a buffer to I2C bus.

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

addressI2C address of the destination slave device
bufferBuffer to send.
sizeNumber of bytes to send. Maximum size is the return value of getMaxBufferLength().
frequencyClock frequency
timeOutMSOperation timeout in milliseconds
True on success

Definition at line 99 of file tsi2c.cpp.