// YWROBOT
// Compatible with the Arduino IDE 1.0
// Library version:1.1
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 20 chars and 4 line display
LiquidCrystal_I2C lcd(0x27, 20, 4);
void setup()
{
lcd.init(); // Initialize the LCD
lcd.backlight(); // Turn on the backlight
}
void loop()
{
// Display "Hello, world!" and wait for 3 seconds
lcd.clear();
lcd.setCursor(3, 0); // Set cursor to column 3, row 0
lcd.print("Hello, world!"); // Print on the first row
delay(3000); // Wait for 3 seconds
// Display "Ywrobot Arduino!" and wait for 3 seconds
lcd.clear();
lcd.setCursor(2, 1); // Set cursor to column 2, row 1
lcd.print("Rohan Matre Arduino!"); // Print on the second row
delay(3000); // Wait for 3 seconds
// Display "Arduino LCM IIC 2004" and wait for 3 seconds
lcd.clear();
lcd.setCursor(0, 2); // Set cursor to column 0, row 2
lcd.print("Arduino LCM IIC 2004"); // Print on the third row
delay(3000); // Wait for 3 seconds
// Display "Power By Ec-yuan!" and wait for 3 seconds
lcd.clear();
lcd.setCursor(2, 3); // Set cursor to column 2, row 3
lcd.print("Power By Rohan!"); // Print on the fourth row
delay(3000); // Wait for 3 seconds
}