FabGL
ESP32 Display Controller and Graphics Library

◆ writePort() [1/2]

void writePort ( int  port,
uint8_t  value,
uint8_t  hwAddr = 0 
)
inline

Sets status of output pins of specified port.

Parameters
portPort to set output pins (MCP_PORTA or MCP_PORTB)
valueOutput pins status mask (1 = high, 0 = low)
hwAddrOptional hardware device address

Example:

// set A2 and A3 to high
io.writePort(MCP_PORTA, 0b00001100);

Definition at line 371 of file MCP23S17.h.