#include <LiquidCrystal.h>
#define MiSwitch1 2
LiquidCrystal lcd(12,11,10,9,8,7);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(MiSwitch1, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int estadoBoton = digitalRead(MiSwitch1);
Serial.println(estadoBoton);
if(estadoBoton == HIGH){
lcd.begin(16,2);
lcd.setCursor(2,0);
lcd.print("Hello World!");
lcd.setCursor(0,1);
lcd.print("Raul Sologaistoa");
}
}