#include <LiquidCrystal.h>
// Initialize the LCD with the correct pin numbers
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2); // Set the LCD dimensions (16 columns, 2 rows)
}
void loop() {
lcd.setCursor(0, 0); // Set the cursor to the first position
lcd.print("Hello, World!"); // Print "Hello, World!"
delay(1000); // Wait for 1 second
// Scroll the display to the left
for (int i = 0; i < 16; i++) {
lcd.scrollDisplayLeft(); // Scroll the text left
delay(300); // Delay between each scroll step
}
lcd.clear(); // Clear the display
delay(1000); // Wait before starting again
}