Advertisement
iyera20

LCD Test

Jun 21st, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /*
  2. * Atiriya Iyer
  3. * 6-20-17
  4. * LCD
  5. */
  6. #include <LiquidCrystal.h>
  7. LiquidCrystal lcd (12,11, 15, 16, 17, 18);
  8.  
  9. void setup()
  10. {
  11. Serial.begin (9600);
  12. lcd.begin (16,2);
  13. lcd.print ("My name is");
  14. lcd.setCursor (4,1);
  15. lcd.print ("Atiriya");
  16. lcd.setCursor (12,0);
  17. lcd.print ("...");
  18. delay(5000);
  19. lcd.clear();
  20. }
  21.  
  22. void loop()
  23. {
  24. for (int i=0; i <= 9; i++)
  25. {
  26. lcd.setCursor (i,0);
  27. lcd.print ("Atiriya");
  28. delay (500);
  29. lcd.clear();
  30. }
  31. lcd.clear();
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement