Guest User

Arduino Code

a guest
Apr 8th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2. //MEGA pins
  3. static int RS = 22;
  4. static int E = 23;
  5. static int D4 = 26;
  6. static int D5 = 28;
  7. static int D6 = 28;
  8. static int D7 = 29;
  9. static int C = 40;
  10.  
  11. LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
  12.  
  13. int contrast = 15;
  14.  
  15. boolean started = false;
  16. boolean startedTimer = false;
  17.  
  18. void setup(){
  19. lcd.begin(16, 2);
  20. lcd.print("P-Gate Monitor");
  21. lcd.setCursor(0, 1);
  22. lcd.print("Programmed by");
  23.  
  24. pinMode(C, OUTPUT);
  25. analogWrite(C, contrast);
  26. }
  27.  
  28. void loop(){
  29. //Timer code
  30. }
Advertisement
Add Comment
Please, Sign In to add comment