FabGL
ESP32 Display Controller and Graphics Library

◆ readPort16()

uint16_t readPort16 ( uint8_t  hwAddr = 0)
inline

Gets status of input pins of combined port A and B.

Parameters
hwAddrOptional hardware device address
Returns
Input pins status mask (1 = high, 0 = low)

Example:

// read input pins of Port A and B
uint16_t portAB = io.readPort16();

Definition at line 413 of file MCP23S17.h.