#include <LiquidCrystal.h>
/* Create object named lcd of the class LiquidCrystal */
//LiquidCrystal lcd(13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3); /* For 8-bit mode */
int rs=12,en=11,d4=5,d5=6,d6=7,d7=8;
LiquidCrystal lcd(12, 11, 5, 4, 3,2); /* For 4-bit mode */
// //LiquidCrystal object_name(rs,rw,en,d4,d5,d6,d7)
// unsigned char Character1[8] = { 0x04, 0x1F, 0x11, 0x11, 0x1F, 0x1F, 0x1F, 0x1F }; /* Custom Character 1 */
// unsigned char Character2[8] = { 0x01, 0x03, 0x07, 0x1F, 0x1F, 0x07, 0x03, 0x01 }; /* Custom Character 2 */
// void setup() {
// lcd.begin(16,2); /* Initialize 16x2 LCD */
// lcd.clear(); /* Clear the LCD */
// lcd.createChar(0, Character1); /* Generate custom character */
// lcd.createChar(1, Character2);
// }
// void loop() {
// lcd.setCursor(0,0); /* Set cursor to column 0 row 0 */
// lcd.print("Lovely Professional University"); /* Print data on display */
// lcd.setCursor(0,1);
// lcd.write(byte(0)); /* Write a character to display */
// lcd.write(1);
// }
char message[]={"Lovely Professional"};
void setup(){
lcd.begin(16,2);
//lcd.print("Lovely Professional university");
}
void loop(){
// lcd.setCursor(16,1);
// lcd.autoscroll();
// for(int thischar=0; thischar<10;thischar++){
// lcd.print(thischar);
// delay(50);
// }
// lcd.noAutoscroll();
// lcd.clear();
lcd.setCursor(0,0);
for(int i=0;i<=30;i++){
lcd.print(message[i]);
delay(100);
if(i>16){
lcd.scrollDisplayRight();
}
}
}
/*
Gnd =VSS=Vee=r/w
Vd=5v
0,0|1,0|||||
0,1|||||||
*/