#include <LiquidCrystal.h>
// Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(14, 13, 12, 27, 26, 25);
void setup() {
// Set up the LCD's number of columns and rows
lcd.begin(16, 2);
lcd.clear();
lcd.print("SAI SREENIVAS");
delay(2000); // Wait for 2 seconds before starting the scroll
}
void loop() {
// Scroll the text to the left
for (int position = 0; position < 16; position++) {
lcd.scrollDisplayLeft();
delay(300); // Adjust the delay to control the scrolling speed
}
// Scroll the text to the right
for (int position = 0; position < 16; position++) {
lcd.scrollDisplayRight();
delay(300); // Adjust the delay to control the scrolling speed
}
}