Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
CODE
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(34,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init();
lcd.backlight();
}
void loop(){
lcd.setBacklight(1);
lcd.setCursor(4,1);
lcd.print("MY");
lcd.setCursor(2,0);
lcd.print("NAME IS");
delay(3000);
lcd.clear();
delay(2000);
lcd.setCursor(2,0);
lcd.print("SAURABH,GUPTA");
lcd.setCursor(2,1);
lcd.print("COOL");
delay(3000);
lcd.clear();
delay(2000);
}