FabGL
ESP32 Display Controller and Graphics Library

◆ readPort() [2/2]

void readPort ( int  port,
void *  buffer,
size_t  length,
uint8_t  hwAddr = 0 
)

High speed reads en entire buffer from a specific port.

Parameters
portSource port (MCP_PORTA or MCP_PORTB)
bufferPointer to the destination buffer
lengthBuffer length (max 4092 bytes)
hwAddrOptional hardware device address

Example:

// performs 256 reads from port A
uint8_t buf[256];
io.readPort(MCP_PORTA, buf, 256);

Definition at line 322 of file MCP23S17.cpp.