#include <LiquidCrystal.h> // include the LiquidCrystal library
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // RS, Enable, D4, D5, D6, D7
void setup() {
// set up the LCD's number of columns and rows
lcd.begin(16, 2); // 16 columns, 2 rows
// display scrolling text in reverse
String text = "Murari dept of cse";
lcd.setCursor(15, 1); // set the cursor to the last position on the second row
for (int i = text.length() - 1; i >= 0; i--) { // iterate through each character of the text in reverse
lcd.write(text[i]); // write the character to the LCD
}
delay(1000); // delay for readability
}
void loop() {
// scroll the text to the right
lcd.scrollDisplayRight(); // shift display right by one position
delay(500); // adjust the speed of scrolling here
}