FabGL
ESP32 Display Controller and Graphics Library

◆ readGPIO()

bool readGPIO ( int  gpio,
uint8_t  hwAddr = 0 
)

Reads input status of a pin.

Parameters
gpioPin to read input value (MCP_A0...MCP_A7 and MCP_B0...MCP_B7)
hwAddrOptional hardware device address
Returns
Read input value (false = low, true = high)

Example:

bool A3 = io.readGPIO(MCP_A3);
Examples:
VGA/HardwareTest/HardwareTest.ino.

Definition at line 274 of file MCP23S17.cpp.