Advertisement
esha492

LCD STARS

Oct 18th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2. LiquidCrystal lcd(4,6,10,11,12,13);
  3.  
  4. void setup() {
  5. // put your setup code here, to run once:
  6. lcd.begin (16,2);
  7. lcd.setCursor(5,0);
  8. lcd.print("HELLO");
  9. lcd.setCursor(1,1);
  10. lcd.print ("hi");
  11.  
  12. }
  13.  
  14. void loop() {
  15. // put your main code here, to run repeatedly:
  16. lcd.clear();
  17. for (int i = 0; i<16; i++)
  18. {
  19. lcd.setCursor(i,0);
  20. lcd.print ("I LOVE STEM");
  21. delay (200);
  22. lcd.clear();
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement