FabGL
ESP32 Display Controller and Graphics Library

◆ readPort() [1/2]

uint8_t readPort ( int  port,
uint8_t  hwAddr = 0 
)
inline

Gets status of input pins of specified port.

Parameters
portPort to get input pins (MCP_PORTA or MCP_PORTB)
hwAddrOptional hardware device address
Returns
Input pins status mask (1 = high, 0 = low)

Example:

// read input pins of port A
uint8_t portA = io.readPort(MCP_PORTA);

Definition at line 386 of file MCP23S17.h.