#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define LCD_COLUMNS 20
#define LCD_LINES 4
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
void setup() {
// Init
lcd.init();
lcd.backlight();
// Print something
lcd.setCursor(5, 0);
lcd.print("");
lcd.print("The LED is");
lcd.setCursor(6, 1);
lcd.print("Blinking");
delay(900);
lcd.clear();
delay(1000);
lcd.setCursor(0, 0);
lcd.print("");
lcd.print("The Blue, red and ");
lcd.setCursor(3, 1);
lcd.print(" yellow LED ");
lcd.setCursor(3, 2);
lcd.print("are Blinking");
}
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(500); // wait for a second
digitalWrite(12, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(12, LOW); // turn the LED off by making the voltage LOW
delay(500); // wait for a second
digitalWrite(11, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(11, LOW); // turn the LED off by making the voltage LOW
delay(500); // wait for a second
}