#include <LiquidCrystal.h>
int a;
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
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 name on the first line of the LCD.
lcd.setCursor(0, 0); // Set the cursor to the first column, first row.
lcd.print("Name: Khushman");
// Print a grade on the second line of the LCD.
lcd.setCursor(0, 1); // Set the cursor to the first column, second row.
lcd.print("GR.XI-PYTHEGORAS");
}
void loop() {
// Here you can add code that needs to be repeatedly executed.
// put your main code here, to run repeatedly:
for(a=0;a<=15;a++)
{
lcd.scrollDisplayRight();
delay(500);
}
delay(1000);
for(a=0;a<=15;a++)
{
lcd.scrollDisplayLeft();
delay(500);
}
delay(1000);
}