FabGL
ESP32 Display Controller and Graphics Library
|
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.
addr | Register address (bank 0) |
value | 8 bit value to write |
hwAddr | Optional 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.