Advertisement
sirik13

basic lcd

Apr 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2. // include the library code:
  3. #include <LiquidCrystal.h>
  4.  
  5. // initialize the library with the numbers of the interface pins
  6. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  7.  
  8. void setup() {
  9. // set up the LCD's number of columns and rows:
  10. lcd.begin(16, 2);
  11. // Print a message to the LCD.
  12. lcd.print("i love ms suarez");
  13. }
  14.  
  15. void loop() {
  16. // set the cursor to column 0, line 1
  17. // (note: line 1 is the second row, since counting begins with 0):
  18. lcd.setCursor(0, 1);
  19. // print the number of seconds since reset:
  20. lcd.print(millis() / 1000);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement