#include <LiquidCrystal.h>
int rs=12, en=11, d4=5, d5=4, d6=3, d7=2;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.home();
lcd.println("SRMIST");
delay(1000);
lcd.println(25,DEC);
delay(1000);
lcd.println(25,HEX);
delay(1000);
lcd.println(25,OCT);
delay(1000);
lcd.println(25,BIN);
}
//text with scroll
#include <LiquidCrystal.h>
int rs=12, en=11, d4=5, d5=4, d6=3, d7=2;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.home();
lcd.println("SRMIST.Delhi NCR Campus");
for(int position.counter=0;position counter<22; position counter counter ++)
{lcd.scrollDisplay left();
delay(1000);
}
lcd.setCursor(0,1);
lcd.println(25,DEC);
lcd.setCursor(3,1);
lcd.println(25,HEX);
lcd.setCursor(6,1);
lcd.println(25,OCT);
lcd.setCursor(15,1);
lcd.println("Hello");
for (int pcntr=0; pcntr<19; pcntr++)
{
lcd scrollDisplay left();
delay(1000);
}
}