|
FabGL
ESP32 Display Controller and Graphics Library
|
| 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.
| address | I2C address of the source slave device |
| buffer | Buffer where to put received data (must have space for at least "size" bytes) |
| size | Number of bytes to receive. Maximum size is the return value of getMaxBufferLength(). |
| frequency | Clock frequency |
| timeOutMS | Operation timeout in milliseconds |