FabGL
ESP32 Display Controller and Graphics Library
|
void configureGPIO | ( | int | gpio, |
MCPDir | dir, | ||
bool | pullup = false , |
||
uint8_t | hwAddr = 0 |
||
) |
Configure a pin direction and pullup.
gpio | Pin to set direction (MCP_A0...MCP_A7 and MCP_B0...MCP_B7) |
dir | Direction (MCPDir::Input or MCPDir::Output) |
pullup | If True pull-up resistor is enabled |
hwAddr | Optional hardware device address |
Example:
io.configureGPIO(MCP_B0, MCPDir::Output); // B0 is an output io.configureGPIO(MCP_A1, MCPDir::Input, true); // A1 is an input with pullup
Definition at line 258 of file MCP23S17.cpp.