#include <LiquidCrystal.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
int i=0 , j=0;
String r0T = "Name: Sahu Arabinda Kailash";
String r1T = "Enrollment no: 210230111008";
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x3F for a 16 chars and 2 line display
void setup()
{
lcd.init();
lcd.clear();
lcd.backlight();
lcd.setCursor(0,0);
lcd.print(r0T);
lcd.setCursor(0,1);
lcd.print(r1T);
}
void loop()
{
Scrollr0();
Scrollr1();
}
void Scrollr0()
{
int L0= r0T.length();
for(i=0;i<=L0;i++)
{
lcd.scrollDisplayLeft();
delay(150);
}
}
void Scrollr1()
{
int L1= r1T.length();
for(j=0;j<=L1;j++)
{
lcd.scrollDisplayLeft();
delay(150);
}
}