carcyn

Untitled

Feb 3rd, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2. LiquidCrystal potato(12,11,5,4,3,2) ;
  3.  
  4.  
  5. void setup() {
  6. potato.begin (16,2) ;
  7. potato.print("hehe");
  8.  
  9. }
  10.  
  11. void loop() {
  12. potato.setCursor(0, 0);
  13. for (int thisChar = 0; thisChar < 10; thisChar++) {
  14. potato.print(thisChar);
  15. delay(500);
  16. }
  17. // turn off automatic scrolling
  18. potato.noAutoscroll();
  19.  
  20. // clear screen for the next loop:
  21. potato.clear();
  22. }
Add Comment
Please, Sign In to add comment