 #include "Adafruit_GFX.h"
 #include "RTClib.h"
 #include "AT24Cxx.h"
+#include <ClickEncoder.h>
 
 
 // 2013-04-06 TODO:  Add a temperature sensor to the lamp and if it exceeds a particular temperature, then turn it off or down

      setSunSet();
    }
  } 
  else if (digitalRead(FwdButton)==LOW && debounceDigitalRead(FwdButton)==LOW) {
    matrixBrightness = max(min(15,matrixBrightness+1),0); 
    matrix.setBrightness(matrixBrightness); // 0-15
    waitForButtonDepress(FwdButton);
    writeBrightnessToEEPROM();
  } 
  else if (digitalRead(RewButton)==LOW && debounceDigitalRead(RewButton)==LOW) {
    matrixBrightness = max(min(15,matrixBrightness-1),0); 
    matrix.setBrightness(matrixBrightness); // 0-15
    waitForButtonDepress(RewButton);
    writeBrightnessToEEPROM();
  }
  updateLight();
  updateCurrentTime();
  updateClockTime();


AT24Cxx eeprom;
// This is the time you want to get up.  Lights will start 30 minutes before.
ClockTime alarmTime(6,00); 
ClockTime startTime(5,30);

const int alarm_address = 0;
const int sundown_address = 2;
