#include<LiquidCrystal.h>
LiquidCrystal lcd(4, 5, 6, 7, 8, 9);
int btn = 3;
void setup() {
pinMode(btn, INPUT_PULLUP);
lcd.begin(16, 2);
// put your setup code here, to run once:
}
void loop() {
if (digitalRead(btn) == 0) {
lcd.clear();
while (1) {
lcd.setCursor(5, 0);
lcd.print("Hello");
// lcd.print(digitalRead(btn));
if (digitalRead(btn) == 1) {
}
}
// put your main code here, to run repeatedly:
}
//lcd.setCursor(11, 0);
//lcd.print(digitalRead(btn));
}