FabGL
ESP32 Display Controller and Graphics Library

◆ enablePortPullUp()

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

Enables/disables port pull-ups.

Parameters
portPort to set pull-ups (MCP_PORTA or MCP_PORTB)
valuePull-ups mask (1 = pull-up enabled)
hwAddrOptional hardware device address

Example:

// enable pull-up for pin A7
io.enablePortPullUp(MCP_PORTA, 0b10000000);

Definition at line 347 of file MCP23S17.h.