FabGL
ESP32 Display Controller and Graphics Library
|
void readPort | ( | int | port, |
void * | buffer, | ||
size_t | length, | ||
uint8_t | hwAddr = 0 |
||
) |
High speed reads en entire buffer from a specific port.
port | Source port (MCP_PORTA or MCP_PORTB) |
buffer | Pointer to the destination buffer |
length | Buffer length (max 4092 bytes) |
hwAddr | Optional hardware device address |
Example:
// performs 256 reads from port A uint8_t buf[256]; io.readPort(MCP_PORTA, buf, 256);
Definition at line 339 of file MCP23S17.cpp.