#include <LiquidCrystal.h>
LiquidCrystal lcd(10,9,8,7,6,5);
int A = 12;
int button = 13;
bool buttonState = 0;
void setup() {
// put your setup code here, to run once:
lcd.begin(16,0);
lcd.print("Hello World!");
pinMode(button,INPUT);
pinMode(A,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
// lcd.begin(16,0);
// lcd.write("Hello World!");
// delay(1000);
// lcd.clear();
// delay(1000);
buttonState = digitalRead(button);
if(buttonState == HIGH){
digitalWrite(A,LOW);
} else{
digitalWrite(A,HIGH);
}
}