#include<LiquidCrystal.h>
LiquidCrystal lcd(2,3,4,5,6,7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
lcd.print("hello everyone");
}
/* void loop() {// 1st concept
// put your main code here, to run repeatedly:
lcd.print("hello everyone");
delay(2000);
lcd.clear();
lcd.print("welcome to my pc ");
delay(2000);
lcd.clear();
lcd.print("let's study coding ");
delay(2000);
lcd.clear();
}*/
// void loop() {// 2nd concept blink
// lcd.noBlink();
// delay(3000);
// lcd.blink();
// delay(3000);
// }
// void loop(){ //3rd no display and display
// lcd.noDisplay();
// delay(500);
// // Turn on the display:
// lcd.display();
// delay(500);
// }
// void loop() {// 4th concept scroll display (again samghna hai yt pr )
// // scroll 13 positions (string length) to the left
// // to move it offscreen left:
// for (int positionCounter = 0; positionCounter < 13; positionCounter++) {
// // scroll one position left:
// lcd.scrollDisplayLeft();
// // wait a bit:
// delay(150);
// }
// // scroll 29 positions (string length + display length) to the right
// // to move it offscreen right:
// for (int positionCounter = 0; positionCounter < 29; positionCounter++) {
// // scroll one position right:
// lcd.scrollDisplayRight();
// // wait a bit:
// delay(150);
// }
// // scroll 16 positions (display length + string length) to the left
// // to move it back to center:
// for (int positionCounter = 0; positionCounter < 16; positionCounter++) {
// // scroll one position left:
// lcd.scrollDisplayLeft();
// // wait a bit:
// delay(150);
// }
// // delay at the end of the full loop:
// delay(1000);
// }