#include <Wire.h> // Include the Wire library for I2C communication
#include <LiquidCrystal_I2C.h> // Include the LiquidCrystal_I2C library
// Initialize an LCD object with I2C address 0x27, 16 columns, and 2 rows
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
lcd.init();
lcd.backlight();
// Print something
lcd.setCursor(2, 0); // Set the cursor position to column 2, row 0
lcd.print("Good things"); // Start Printing
lcd.setCursor(3, 1); // Set the cursor position to column 3, row 1
lcd.print("take time."); // Start Printing
delay(3000);
lcd.clear();
}
void loop(){
lcd.setCursor(2, 1); // Set the cursor position to column 2, row 1
lcd.print("If you can dream it, you can do it!"); // Start Printing
lcd.scrollDisplayLeft(); // Scroll the display to the left
delay(50);
}