Advertisement
diegocali86

Laboratorio de Puertos Paralelos y Seriales

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