// --------------------------------------
// i2c-scanner
//
// This sketch tests the standard 7-bit addresses
// Devices with higher bit address might not be seen properly.
// See full version history here: https://gist.github.com/urish/917414da3477e528c8782ee05cd6f557
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
int led_pin=13;
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0,0); // set cursor to 1 symbol of 1 line
lcd.print("Gernata school");
pinMode(led_pin,OUTPUT);
}
void loop()
{
lcd.setCursor(0,0);
lcd.print("Gernata school");
lcd.setCursor(0,1);
lcd.print("Sedra awawdi");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Gernata school");
lcd.setCursor(0,1);
lcd.print("Led is on");
digitalWrite(led_pin,HIGH);
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Gernata school");
lcd.setCursor(0,1); // set cursor to 1 symbol of 1 line
lcd.print("Led is off");
digitalWrite(led_pin,LOW);
delay(3000);
}