So it says “HELLO WORLD” but then goes right to the "A is for Apple with the button being pressed. I have tried changing it to say when button state LOW but then nothing happens after “HELLO WORLD”. Thank you
#include <LiquidCrystal.h>
const int button1Pin= 13;
int button1State = 0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
lcd.begin(16, 2);
lcd.print(“HELLO WORLD”);
delay(3000);
lcd.clear();
}
void loop()
{
button1State = digitalRead(button1Pin);
if(button1State == HIGH)
{
lcd.setCursor(0,0);
lcd.print(" A is for APPLE ");
delay(3000);
lcd.clear();
}
}