FabGL
ESP32 Display Controller and Graphics Library
|
bool readGPIO | ( | int | gpio, |
uint8_t | hwAddr = 0 |
||
) |
Reads input status of a pin.
gpio | Pin to read input value (MCP_A0...MCP_A7 and MCP_B0...MCP_B7) |
hwAddr | Optional hardware device address |
Example:
bool A3 = io.readGPIO(MCP_A3);
Definition at line 282 of file MCP23S17.cpp.