FabGL
ESP32 Display Controller and Graphics Library

◆ writeGPIO()

void writeGPIO ( int  gpio,
bool  value,
uint8_t  hwAddr = 0 
)

Sets output status of a pin.

Parameters
gpioPin to set output value (MCP_A0...MCP_A7 and MCP_B0...MCP_B7)
valueValue to set (false = low, true = high)
hwAddrOptional hardware device address

Example:

io.writeGPIO(MCP_A1, true);  // A1 = high
Examples
VGA/HardwareTest/HardwareTest.ino.

Definition at line 273 of file MCP23S17.cpp.