#ifndef Display_h #define Display_h #include "Arduino.h" #include #include #include class Display { unsigned long previousMillisMessage2 = 0; // will store last time LCD was updated w/Message 2 unsigned long previousMillisMessage3 = 0; // will store last time LCD was updated w/Message 3 unsigned long currentMillis; unsigned long intervalMessage2 = 625; // interval at which to update LCD for Message 2 unsigned long intervalMessage3 = 24UL*60UL*60UL*1000UL; // interval at which to update LCD for Message 3 unsigned long waitMessage3 = 2UL*60UL*60UL*1000UL; //interval at which Message 3 waits to display int updateInterval; // interval between updates unsigned long lastUpdate; // last update of position const int ldrPin = A0; // light dependent resistor pin int ldrState = 0; // variable to store the value coming from the sensor const int buttonPin = 8; // pushbutton pin int buttonState = 0; //local variable to hold button states int directionState = 0; public: void Message1(int refreshSeconds); void Message2(); void Message3(); }; #endif