FabGL
ESP32 Display Controller and Graphics Library

◆ writePort() [2/2]

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

High speed writes an entire buffer to a specific port.

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

Example:

// sends the content of "buf" (256 bytes) to port A
io.writePort(MCP_PORTA, buf, 256);

Definition at line 294 of file MCP23S17.cpp.