christian-18

Untitled

Dec 31st, 2018
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2.  
  3. LiquidCrystal lcd(12,11,5,4,3,2);
  4.  
  5. char telecom[20]={' ',' ','m','y',' ','c','o','u','n','t','e','r',' ','i','s',' ', 'o','f','f',' '};
  6.  
  7. void setup(){
  8. lcd.begin(16,2);
  9. lcd.setCursor(2,0);
  10. lcd.print(" MY COUNTER");
  11. }
  12. void loop(){
  13. lcd.setCursor(0,1);
  14. for(int j=0;j<=20;j++){
  15. lcd.print(telecom[j]);}
  16. lcd.setCursor(0,1);
  17. delay(70);
  18. int swap=telecom[20];
  19. for(int i=20;i>0;i--){
  20. telecom[i]=telecom[i-1];}
  21. telecom[0]=swap;
  22.  
  23. }
Add Comment
Please, Sign In to add comment