 /**
    Sets the MCU into a deep sleep state until a change interrupt is triggered
 */
-void goToDeepSleep() {
+void goToSleep() {
   set_sleep_mode(SLEEP_MODE_PWR_DOWN);
   ADCSRA = 0; // turn off ADC
   power_all_disable (); // power off ADC, Timer 0 and 1, serial interface

#include <avr/power.h>
#include <avr/wdt.h>

const unsigned int BUZZER_PIN = PB0;
const unsigned int MOTOR_PIN = PB1;
const unsigned int BUTTON_PIN = PB2;
const unsigned int ACCELEROMETER_IN = PB3;
const unsigned int ACCELEROMETER_POWER = PB4;
const unsigned long DEBOUNCE_TIME = 50;

volatile bool watchDogBarked = false;
bool watchDogEnabled = false;

volatile bool buttonPressed = false;

enum WatchDogTimeout {
  WDT_16ms,
  WDT_32ms,
  WDT_64ms,
  WDT_128ms,

  WDTCR = timeoutVal;
  WDTCR |= _BV(WDIE);
  wdt_reset();  // pat the dog
  currentWdt = wdt;
}

/**
