#include <LiquidCrystal.h>
// LCD Familiar
// Pin 1 = VSS = Ground
// Pin 2 = VDD = Power
// Pin 3 = VEE = Adjusting LCD Contranst
// Pin 4 = RS(Resister Select) Two types 1.Command Resister(Giving many types of comand to LCD such as LCD Display Clear, Cursor Set(Position Change of Writings) etc.) 2.Data Resister. It should connect any pin of arduino. When 0 it will command and when 1 it will work with data. We have not change 0 and 1. Arduino will do it own. Only we have to connect this pin with any pin of arduino.
// Pin 5 = RW(Read and Write) When read RW = 1 and When Write RW = 0
// Pin 6 = Enable Pin
// Pin 7-14 = used as Data Pin(When we use 4 bit then have to use last 4 pin)
LiquidCrystal lcd(13,12,11,10,9,8);
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.print("Salman \n");
delay(500);
lcd.print("Farshi \n");
}