FabGL
ESP32 Display Controller and Graphics Library

◆ begin()

bool begin ( gpio_num_t  SDAGPIO,
gpio_num_t  SCLGPIO 
)

Initializes I2C instance associating GPIOs to I2C signals.

Parameters
SDAGPIOPin to use for SDA signal
SCLGPIOPin to use for SCK signal

Example:

// 4 = SDA, 15 = SCL (WARN: disconnect VGA connector!!)
I2C.begin(GPIO_NUM_4, GPIO_NUM_15);

Definition at line 72 of file tsi2c.cpp.