#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 6, 2);
int led1= 16;
int led2= 17;
int valor1;
int valor2;
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
pinMode(led1,OUTPUT);
pinMode(led2,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(led1, HIGH);
lcd.setCursor(0,0);
lcd.print("Led rojo on");
delay(2000);
digitalWrite(led1, LOW);
lcd.setCursor(0,0);
lcd.print("Led1 off");
delay(3000);
digitalWrite(led2, HIGH);
lcd.setCursor(0,1);
lcd.print("Led2 on");
delay(2500);
digitalWrite(led2, LOW);
lcd.setCursor(0,1);
lcd.print("Led2 off");
delay(500);
}