Created
February 28, 2020 14:12
-
-
Save benevpi/e2ee3ce04aea79b5d9b6aad12065fd41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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