#include <LiquidCrystal_I2C.h> //library that allows communication with the LCD via I2C protocol
#define lcd_address 0x27 //I2C address of the LCD - commonly used by many I2C LCD displays
#define lcd_col 16 //Defines the number of columns
#define lcd_row 2 //Defines the number of rows
LiquidCrystal_I2C lcd (lcd_address, lcd_col, lcd_row); //an object lcd of the LiquidCrystal_I2C class- initializing I2C address, columns, rows
void setup() //used to initialize hardware and perform setup tasks
{
// put your setup code here, to run once:
lcd.begin(16, 2); // initialize the LCD by specifying no. of columns and rows
lcd.init(); // initialize the LCD using the init() function, which ensures the LCD is ready for use
lcd.backlight(); //turns on the backlight of the LCD
lcd.setCursor(1, 0); //sets the cursor position on the LCD 3rd column, 4th row.
lcd.print("JJ Engg Clg"); // content to print
lcd.setCursor(0,1);
lcd.print ("DEEPA LAKSHMI G");
}
void loop() {
// put your main code here, to run repeatedly:
}