Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal.h>
- LiquidCrystal lcd(12,11,5,4,3,2);
- char telecom[20] = {' ',' ','m','y',' ','c','o','u','n','t','e','r',' ','i','s',' ', 'o','f','f',' '};
- void setup()
- {
- lcd.begin(16,2);
- lcd.setCursor(2,0);
- lcd.print(" MY COUNTER");
- }
- void loop()
- {
- lcd.setCursor(0,1);
- for(int j = 0; j <= 20; j++)
- lcd.print(telecom[j]);
- lcd.setCursor(0,1);
- delay(70);
- int swap = telecom[0];
- for(int i = 0; i < 20; i++)
- telecom[i] = telecom[i+1];
- telecom[20] = swap;
- }
Add Comment
Please, Sign In to add comment