#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Initialize the LCD. The I2C address is typically 0x27 for this type of display.
LiquidCrystal_I2C lcd(0x27, 16, 2); // Set the LCD address to 0x27 for a 16x2 display
void setup() {
// Initialize the LCD
lcd.init();
// Turn on the backlight
lcd.backlight();
// Clear the LCD screen
lcd.clear();
// Print "Hello world!" on the first line
lcd.setCursor(0, 0);
lcd.print("Hello world!");
// Print "LCD Tutorial" on the second line
lcd.setCursor(0, 1);
lcd.print("LCD Tutorial");
}
void loop() {
// Nothing to do here
}