#include <LiquidCrystal.h>
LiquidCrystal lcd(7,6,5,4,3,2);
int cont, tiempo=1;
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
cont=0;
while(cont !=10)
{
cont = millis()/1000/tiempo;
lcd.setCursor(0,0);
lcd.print("HOLA, HAN PASADO");
lcd.setCursor(0,1);
lcd.print(millis()/1000);
lcd.print(" SEG.");
delay(1000);
}
tiempo++;
lcd.clear();
for (int i=0; i<=9;i++){
lcd.setCursor(0,0);
lcd.print("ALARMA ACTIVA !");
lcd.display();
delay(500);
lcd.noDisplay();
delay(500);
}
tiempo++;
lcd.display();
lcd.clear();
for (int i=0; i<=9;i++){
lcd.setCursor(0,0);
lcd.print("INGRESE CLAVE:");
lcd.setCursor(0,1);
lcd.cursor();
delay(500);
lcd.noCursor();
delay(500);
}
tiempo++;
lcd.clear();
for(int i=0; i<=30;i++){
lcd.setCursor(2,0);
lcd.print("PRUEBA SCROLL");
lcd.scrollDisplayLeft();
delay(1000);
}
tiempo=tiempo+3;
lcd.clear();
}