// lcd sm training academy
// it has 16 columns and 2 rows
// totally there are 32 sections for the characters of the numbers to display
// There are lot of functions inside the liquid crystal library please goo check it out
#include <LiquidCrystal.h>
const int rs = 13, en = 12, d4 = 11, d5 = 10, d6 = 9, d7 = 8;
LiquidCrystal sm(rs, en, d4, d5, d6, d7);
void setup() {
// lcd.begin(no of columns, no of rows );
sm.begin(16, 2);
// set cursor location of the caractres where are we want to print
// setcursor(column no , row no)
sm.setCursor(0, 0);
sm.print("Hello Mathesh");
// Clear fuunction
// This function is used for clearing the display content that is available in the lcd
// If you printing somethig on the lcd and if you call this function everythihng will be cleared that is available on the lcd
delay(2000);
sm.clear();
/////////////////////////////////////////////////////////////
// home - it will set the cursor position to the zeroth column and zeroth row of the lcd
///////////////////////////////////////////////////////////////
// write it writes the data to the lcd same as the print function
// cursor - if you want the cursor to be printed you can use this
sm.cursor();
// nocursor - if you enabled the cursor in the lcd you can remove or delete the cursor by using the no cursor function
/* delay(3000);
sm.nocursor();
*/
delay(3000);
sm.blink();
/*delay(2000);
sm.noblink;*/
// display - turning the display on and no display is used to turn of
}
void loop() {
/*
sm.display();
delay(2000);
sm.nodisplay();
*/
}