#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
char message[]={"12111713"};
char mes[]={"Girija Shankar"};
char mes2[]={"How are you"};
const int rs = 12, en = 14, d4 = 26, d5 =25, d6 = 33, d7 = 32;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 0);
for(int i=0;i<=8;i++)
{
lcd.print(message[i]);
delay(100);
if(i>16)
{
lcd.autoscroll();
}
}
lcd.setCursor(0, 1);
for(int i=0;i<=13;i++)
{
lcd.print(mes[i]);
delay(100);
if(i>16)
{
lcd.autoscroll();
}
}
lcd.setCursor(0, 1);
for(int i=0;i<=11;i++)
{
lcd.print(mes2[i]);
delay(100);
if(i>16)
{
lcd.autoscroll();
}
}
// print the number of seconds since reset:
// lcd.print("LPU");
}