 void wakeUp() {
   #if DEBUG
     Serial.println("wakeUp() called");
+    Serial.flush();
   #endif 
   adjustBlinkTimes(WAKEUP_PIN);
 }

  DDRB = B00000000;    // set pins 8 to 13 as inputs
  PORTD |= B11111100;  // enable pullups on pins 2 to 7, leave pins 0 and 1 alone
  PORTB |= B11111111;  // enable pullups on pins 8 to 13
  pinMode(LED_PIN, OUTPUT);
  pinMode(WAKEUP_PIN, INPUT);

  digitalWrite(LED_PIN, LOW);
  adjustBlinkTimes(WAKEUP_PIN);
}



#define VERSION    "v0.1"

const int MOTE_LED_PIN = 9;
const int ADDL_LED_PIN = 13;
const int WAKEUP_PIN = 3;
const int MANY = 4;
const int FEW = 1;
