#include <LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8,7,6,5,4);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
lcd.setCursor(0,0);
}
void loop() {
// put your main code here, to run repeatedly:
int i,j,k;
char arr[]="WELCOME ";
char temp;
lcd.setCursor(0,0);
lcd.print(arr);
j=0;
while(j<16)
{
k=(strlen(arr)-1);
temp=arr[k];
for(i=k;i>0;i--)
{
arr[i]=arr[i-1];
}
arr[0]=temp;
delay(100);
lcd.print(arr);
delay(1000);
lcd.clear();
j++;
}
}