#include #include // Define I2C pins for the ESP32 #define SDA_PIN 14 #define SCL_PIN 15 // Define the address of the LCD. Usually, it is 0x27 or 0x3F. #define LCD_ADDRESS 0x27 // Create an instance of the LiquidCrystal_I2C class LiquidCrystal_I2C lcd(LCD_ADDRESS, 16, 2); void setup() { // Initialize I2C communication on the specified SDA and SCL pins Wire.begin(SDA_PIN, SCL_PIN); // Initialize the LCD lcd.init(); lcd.backlight(); // Print a message to the LCD. lcd.setCursor(0, 0); // Set cursor to the first column, first row lcd.print("Hello, World!"); lcd.setCursor(0, 1); // Set cursor to the first column, second row lcd.print("ESP32 with LCD"); } void loop() { // You can add more code here to interact with the LCD. }