#include<Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
int push=8;
void setup() {
// put your setup code here, to run once:
pinMode(push, INPUT_PULLUP);
lcd.init();
lcd.backlight();
//lcd.clear();
lcd.setCursor(5,0);
lcd.print("Welcome");
delay(3000);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(push)==LOW){
lcd.init();
lcd.clear();
lcd.setCursor(4,0);
lcd.print("Thank you");
delay(400);
}
else{
lcd.clear();
lcd.setCursor(5,0);
lcd.print("Please");
lcd.setCursor(3,1);
lcd.print("Push Button");
delay(100);
}
}