   MCUSR &= ~(1<<WDRF);
   
   // set WDCE ad WDE flags in watchdog control register
-  WDTCSR |= (1<<WDCE) | (1<<WDE);
+  WDTCSR |= (1<<WDCE);
   
   // Set WDP2 for 0.25 second wakeup
-  WDTCSR = (1<<WDP2);
+  WDTCSR = (1<<WDP2) | (1<<WDIE);
   
   // Enable Watchdog interrupt, no reset.
-  WDTCSR |= (1<<WDIE);
+  // WDTCSR |= (1<<WDIE);
   
   // re-enable interrupts
   interrupts();
+  // Serial.println("Done initializing the watchdog timer");
 #endif
 
   // Random seed setup

}

void sleep() {
  // set full power down.
  set_sleep_mode(SLEEP_MODE_PWR_DOWN);
  

#include "pitches.h"

// Time of inactivity which will result into going into low power mode
#define IDLE_TIMEOUT 600000
// Short timeout for debugging
// #define IDLE_TIMEOUT 6000

// Warning.. the watchdog sleep mode is experimental, and may brick your arduino.. you have been warned
// #define WATCHDOG_SLEEP

#define NEOPIXEL_PIN 6
#define NUM_PIXELS 16
