esha492

LCD

Oct 16th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /*
  2. * LCD code
  3. * Esha Julka
  4. *
  5. */
  6.  
  7.  
  8. #include <LiquidCrystal.h>
  9. // initialize the library with the numbers of the interface pins
  10. LiquidCrystal lcd (4, 6, 10, 11, 12, 13);
  11.  
  12. void setup() {
  13. // set up the number of columns and ros on the LCD
  14. lcd.begin (16,2);
  15. lcd.setCursor (0,0);
  16. lcd.print ("EMMA");
  17. // set the cursor to column o, line 1
  18. //line 1 is the second row, since counting begins with 0
  19. lcd.setCursor (1,1) ;
  20. //print to the second line
  21. lcd.print ("HOCO - VARUN");
  22.  
  23. }
  24.  
  25. void loop() {
  26. // put your main code here, to run repeatedly:
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment