     CurrentMode = MODE_AUTO;
   }
 
+  // Display greeting on LCD for 1 second
   delay(1000);
   updateLCD();
 }

      stopDoor();
    }
  } else if ( CurrentMode == MODE_SET_OPEN_THRESH ) {
    LightThreshUp = LightThreshUp - 1;
  } else if ( CurrentMode == MODE_SET_CLOSE_THRESH ) {
    LightThreshDown = LightThreshDown - 1;
  } else if ( CurrentMode == MODE_SET_CLOCK_CLOSE_HOUR_THRESH ) {
    ClockThreshDown = TimeSpan(0, ClockThreshDown.hours() - 1, ClockThreshDown.minutes(), 0);
  } else if ( CurrentMode == MODE_SET_CLOCK_CLOSE_MIN_THRESH ) {
    ClockThreshDown = TimeSpan(0, ClockThreshDown.hours(), ClockThreshDown.minutes() - CLOCK_MIN_INCREMENT, 0);
  } else if ( CurrentMode == MODE_SET_CLOCK_OPEN_HOUR_THRESH ) {
    ClockThreshUp = TimeSpan(0, ClockThreshUp.hours() - 1, ClockThreshUp.minutes(), 0);
  } else if ( CurrentMode == MODE_SET_CLOCK_OPEN_MIN_THRESH ) {
    ClockThreshUp = TimeSpan(0, ClockThreshUp.hours(), ClockThreshUp.minutes() - CLOCK_MIN_INCREMENT, 0);
  }
}

void handleTriggers() {
  
  updateLight();
  updateTime();


#include <Stepper.h>
#include <AccelStepper.h>
#include <Wire.h>
#include <RTClib.h>

// --------------------------------------
// -- Constants
// --------------------------------------

const int INT_MAX               = 32767;
const int NONE                  = -1;
const int TICK                  = 150; // microseconds
const byte EEPROM_UNINIT_VALUE  = -1;

const int BUTTON_UP   = LOW;
const int BUTTON_DOWN = HIGH;

// Run modes
