Skip to content

Instantly share code, notes, and snippets.

@benevpi
Created February 28, 2020 14:12
Show Gist options
  • Save benevpi/e2ee3ce04aea79b5d9b6aad12065fd41 to your computer and use it in GitHub Desktop.
Save benevpi/e2ee3ce04aea79b5d9b6aad12065fd41 to your computer and use it in GitHub Desktop.
#include <LiquidCrystal.h>
LiquidCrystal lcd(21, 19, 17, 16, 15, 14);
void setup() {
lcd.begin(16, 2);
lcd.print("hello");
lcd.setCursor(0,1);
lcd.print("world");
}
void loop() {
for(int i=0; i<11; i++) {
lcd.scrollDisplayRight();
delay(500);
}
for(int i=0; i<11; i++) {
lcd.scrollDisplayLeft();
delay(500);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment