#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x3F for a 16 chars and 2 line display
void setup()
{lcd.init();
lcd.clear();
lcd.backlight(); // Make sure backlight is on
// Print a message on both lines of the LCD.
lcd.setCursor(2,0); //Set cursor to character 2 on line 0
lcd.print("Hello world!");
lcd.setCursor(2,1); //Move cursor to character 2 on line 1
lcd.print("led glow");
//sets the number 0 digital pin of the Arduino in output mode
pinMode(1,OUTPUT); //sets the number 1 digital pin of the Arduino in output mode
}
void loop(){
// red LED lights up
digitalWrite(1,LOW); //green LED goes out
delay(2000);
//red LED goes out
digitalWrite(1,HIGH); //green LED lights up
delay(2000);
}