#include <LiquidCrystal_I2C.h>
#include<Wire.h>
LiquidCrystal_I2C lcd1(0x27,16,2);
void setup() {
// put your setup code here, to run once:
lcd1.init();
lcd1.backlight();
lcd1.print("Hola");
delay(2500);
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
lcd1.clear();
digitalWrite(13, HIGH);
lcd1.setCursor(0,0);
lcd1.print("Led1>-prendido");
delay(2000);
lcd1.setCursor(0,1);
lcd1.print("Led2>-apagado");
delay(2000);
lcd1.clear();
digitalWrite(13, LOW);
digitalWrite(12, HIGH);
lcd1.setCursor(0,0);
lcd1.print("Led1>-apagado");
delay(2000);
lcd1.setCursor(0,1);
lcd1.print("Led2>-prendido");
delay(2000);
}