#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);
void setup() {
// put your setup code here, to run once:
pinMode(2, INPUT_PULLUP);
lcd.begin(16,2); //hace el conteo
lcd.print("Clase Microcontroladores");
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(2)==HIGH)
{
lcd.display();
lcd.setCursor(0,1);
lcd.print("Segundos ");
lcd.print(millis()/1000);
}
else{
lcd.noDisplay();
}
}