#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 or the address of your specific module
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Wire.begin(21, 22); // Initialize I2C communication with SDA on GPIO21 and SCL on GPIO22
lcd.begin(16, 2); // Initialize the LCD with 16 columns and 2 rows
lcd.backlight(); // Turn on the backlight
}
void loop() {
lcd.setCursor(0, 0); // Set the cursor to the top-left corner
lcd.print("Hello, World!");
delay(2000); // Display for 2 seconds
lcd.clear(); // Clear the LCD screen
delay(1000); // Wait for 1 second
}