Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal.h>
- //MEGA pins
- static int RS = 22;
- static int E = 23;
- static int D4 = 26;
- static int D5 = 28;
- static int D6 = 28;
- static int D7 = 29;
- static int C = 40;
- LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
- int contrast = 15;
- boolean started = false;
- boolean startedTimer = false;
- void setup(){
- lcd.begin(16, 2);
- lcd.print("P-Gate Monitor");
- lcd.setCursor(0, 1);
- lcd.print("Programmed by");
- pinMode(C, OUTPUT);
- analogWrite(C, contrast);
- }
- void loop(){
- //Timer code
- }
Advertisement
Add Comment
Please, Sign In to add comment