Linux

I2C on Arduino

Using I2C is simple on the Arduino IDE; The ESP32's Wire library could help us.

We're already know that the ports for I2C communication are 15 for SDA, 4 for SCL.
Define as a pre-processor them and use Wire.begin() function. you can put only 2 parameters, pin number for SDA and SCL.

And add a code for set the LCD up.
Include LiquidCrystal_I2C.h library to show a message on that easily.
Create a instance for control the LCD with LiquidCrystal_I2C lcd(LCD_ADDR, 16, 2) line. Given parameters are the LCD ADDR, cols and rows for 16×2 LCD.

Do init(), turn on the backlit with backlight(), set cursor to specify a point to write down with setCursor().
And print().