FabGL
ESP32 Display Controller and Graphics Library

◆ writeReg()

void writeReg ( uint8_t  addr,
uint8_t  value,
uint8_t  hwAddr = 0 
)

Writes 8 bit value to an internal register.

For default this driver uses BANK 0 registers.

Parameters
addrRegister address (bank 0)
value8 bit value to write
hwAddrOptional hardware device address

Example:

// configure PORT A as all inputs...
io.writeReg(MCP_IODIR, 0);
// ...that is the same of
io.setPortDir(MCP_PORTA, 0);

Definition at line 162 of file MCP23S17.cpp.