Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal.h>
- LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
- void setup() {
- lcd.begin(16, 2);
- lcd.print("hello, world!");
- delay(1000);
- }
- void loop() {
- for (int positionCounter = 0; positionCounter < 13; positionCounter++) {
- lcd.scrollDisplayLeft();
- delay(150);
- }
- for (int positionCounter = 0; positionCounter < 29; positionCounter++) {
- lcd.scrollDisplayRight();
- delay(150);
- }
- for (int positionCounter = 0; positionCounter < 16; positionCounter++) {
- lcd.scrollDisplayLeft();
- delay(150);
- }
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement