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);
Examples:
SSD1306_OLED/128x32/CollisionDetection/CollisionDetection.ino, SSD1306_OLED/128x32/SimpleTerminalOut/SimpleTerminalOut.ino, SSD1306_OLED/128x64/CollisionDetection/CollisionDetection.ino, SSD1306_OLED/128x64/DoubleBuffer/DoubleBuffer.ino, SSD1306_OLED/128x64/NetworkTerminal/NetworkTerminal.ino, SSD1306_OLED/128x64/RTClock/RTClock.ino, SSD1306_OLED/128x64/SimpleTerminalOut/SimpleTerminalOut.ino, and SSD1306_OLED/128x64/UI/UI.ino.

Definition at line 62 of file tsi2c.cpp.