#include <LiquidCrystal.h>
const int rs =12, e = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd (rs,e,d4,d5,d6,d7);
char value[16] = {'I',' ','C','A','N',' ','D','O',' ','I','T',' ','2','1','K'};
int i = 0 ;
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
lcd.setCursor(2,0);
lcd.print("HELLO WORLD");
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0,1);
for (i=0 ; i < 16; i++)
{
lcd.print(value[i]);
}
delay(500);
char swaq =value[0];
for (i=0 ; i < 16 ; i++)
{
value [i] = value [i+1];
}
value[15] = swaq ;
}