 #ifdef DEBUG
   #define DEBUG_PRINT(n) Serial.print(n);
   #define DEBUG_PRINTLN(n) {Serial.println(n); delay(100); }
+  #define DEBUG_PRINTTIME(n) printTime(n);
 #else
   #define DEBUG_PRINT(n) {}
   #define DEBUG_PRINTLN(n) {}
+  #define DEBUG_PRINTTIME
 #endif
 
 void printTime( DateTime &dt )

}

int prevHours = -1;

/*******************************************************************************
*******************************************************************************/
void nightlight(DateTime current, bool forceChange) 
{
  // how many hours until wakey?
  double currentMin = 60.0*current.hour() + current.minute();
  double wakeyMin = 60.0*wakeTime.hour() + wakeTime.minute();

  double diffMin = wakeyMin - currentMin;
  if ( diffMin < 0 ) 
    diffMin = wakeyMin + (24.0*60)-currentMin; // remains of today + until wakey
  int newHours = (diffMin / 60)+.5;
  if ( newHours > 12 )
    newHours = 11; // so can tell difference between this and backlight
    
  bool show = forceChange || checkColorChange();
  
  if ( prevHours != newHours || show )
  {
    show = true;
    if ( prevHours >= 0 )
      strip.setPixelColor(prevHours,0);
    for ( int i = 0; i < abs(newHours); i++ )
      strip.setPixelColor(i,Wheel(colorValue));
    DEBUG_PRINT( F("PreHours "));
    DEBUG_PRINT( prevHours );
    DEBUG_PRINT( F(" newHours "));
    DEBUG_PRINTLN( newHours );
    prevHours = newHours;
  }

  if ( millis() % 1000 == 0 )
  {
    DEBUG_PRINT( F("Wakey - current: "));
    DEBUG_PRINT( (int)wakeyMin );
    DEBUG_PRINT( F("min - "));
    DEBUG_PRINT( (int)currentMin );
    DEBUG_PRINT( F("min and diff is "));
    DEBUG_PRINT( (int)diffMin );
    DEBUG_PRINT( F("min and show is "));
    DEBUG_PRINTLN( show );
  }

  if ( show )
    strip.show();

  pinMode(MODE_SWITCH_PIN,INPUT_PULLUP);

  EEPROM.get(MODE_INDEX,mode);
  if ( mode < 0 || mode >= sizeof(modes)/sizeof(char*))
    mode = 0;
  Serial.print(F("Got mode from eeprom ") );
  Serial.println(modes[mode]);

  int32_t wakeUnixTime;
  EEPROM.get(WAKE_INDEX,wakeUnixTime);
