#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
bool button = true;
void setup() {
lcd.begin(0, 0);
lcd.print("X");
pinMode(3, INPUT);
}
void loop() {
if(digitalRead(3)==HIGH){
button = false;
lcd.scrollDisplayRight();
delay(200);
}
else{
lcd.scrollDisplayLeft();
delay(200);
}
}