//Pin VSS for GND
//pin VDD for VCC
//pin VO for contras LCD
//pin RS (Register Select) for pin is used to separate the commands
//pin RW (Read/Write) for pin allows you to read data from or write data to the LCD
//pin E for pin is used to enable the display
//pin D0-D7 for pins carry the 8 bit data we send to the display
//pin A-K(anode & Cathode) for setting backlight LCD
#include <LiquidCrystal.h>
// Creates an LCD object. Parameters: (rs, enable, d4, d5, d6, d7)
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Clears the LCD screen
lcd.clear();
}
void loop()
{
// Print a message to the LCD.
lcd.print(" Hello world!");
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// Print a message to the LCD.
lcd.print(" LCD Tutorial");
}