 #define SERVO_HORZ_MIN 700
 #define SERVO_PIN_HORZ_POWER 8 // PB0
 
-#define DARK_THRESHOLD 500 // too dark below this
-
 #define SLEEP_FLAG_DARK 0  // Gone to sleep because it is dark
 #define SLEEP_FLAG_IDLE 1  // Gone to sleep because nothing to do
 

  

  if (sleep_flag == SLEEP_FLAG_DARK) {
    detachInterrupt(0); // No wakeup interupt while awake
    watchdog_setup(); // watchdog back on
  }
  

        // Move the panels if needed.
        tkr_move();
        
        // INT0 pin LOW = sleep
        if (!digitalRead(PIN_WAKEUP)) {
          goToSleep(SLEEP_FLAG_DARK);
          //TODO connect LDR to INT0
        }
        
    }
