  */
 
 // melody notes
+#define _0 0
 #define _C 262
 #define _D 294
 #define _E 330

const int SPEAKER_OUT = 1; // blinker LED and speaker output at D1
const int COUNTER_LED = 5; // counter 7-seg LED output at D5
const int CLOUDBIT_OUT = 9; // cloudBit output at D9
const int START_TIMER_VAL = 5; // the unit amount for starting timer in seconds
const int MAX_TIMER_VAL = 99 * 60; // max amount of timer in seconds
const int ANALOG_HIGH_THRETHOLD = 100; // threshold to determine an analog value is HIGH
const int MAX_MELODY_COUNT = 1; // how many times melody will be played at alarming

  checkTimerTimeout();
  checkCloudBitInput();
  playClick();
  playNextTone();
}

// decrease timerValue every one sec if timer is not stopped
