FabGL
ESP32 Display Controller and Graphics Library

◆ setPortDir()

void setPortDir ( int  port,
uint8_t  value,
uint8_t  hwAddr = 0 
)
inline

Sets port direction.

Parameters
portPort to configure (MCP_PORTA or MCP_PORTB)
valuePins direction mask (1 = input, 0 = output)
hwAddrOptional hardware device address

Example:

// A0 and A7 are outputs, A1..A6 are inputs
io.setPortDir(MCP_PORTA, 0b01111110);

Definition at line 303 of file MCP23S17.h.