#include<Wire.h>
#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);
void setup(){
lcd.begin(16,2);
lcd.init();
lcd.backlight();
lcd.setCursor(4,0);
lcd.print("Arduino-");
lcd.setCursor(4,1);
lcd.print("For All");
delay(1000);
lcd.clear();
lcd.setCursor(4,0);
lcd.print("This is-);
lcd.setCursor(3,1);
lcd.print("Scrolling.);
delay(1000);
}
void loop(){
for(int x=0;x<13;x++){
lcd.scrollDisplayLeft();
delay(150);
}
for(int x=0;x<13;x++){
lcd.scrollDisplayRight();
delay(150);
}
delay(1000);
for(int x=0;x<13;x++){
lcd.scrollDisplayRight();
delay(150);
}
for(int x=0;x<13;x++){
lcd.scrollDisplayLeft();
delay(150);
}
delay(1000);
}
Comments
Post a Comment