/*Write the code for the intializing LCD to Arduino and print your First name and last name on different line*/
//import <LiquidCrystal_I2C.h> library using include keyword
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
/*Define the LCD properties using "LiquidCrystal_I2C lcd"
by defining rows and columns with an LCD address as parameter*/
int time = 0;
int distance = 0;
int echo = 0;
int trigger = 12;
void setup() {
// put your setup code here, to run once:
//initialize the connected LCD screen using init function
lcd.init();
//Turn on the backlight of LCD using backlight function
lcd.backlight();
//Call method which is transfers data from Arduino to LCD at speed of 9600 using method Serial.begin
Serial.begin(9600);
//Initialize and set cursor to 0,0 position
lcd.setCursor(0,0);
//print your First Name on the lcd
lcd.print(" Niyar");
//Set Cursor to next row using position 0,1
lcd.setCursor(0,1);
//print your Last Name on the LCD
lcd.print(" N Malakar");
}
void loop() {
// put your main code here, to run repeatedly:
}