 long lastHangDebounceTime = 0;  // the last time the reciever pin was toggled
 long lastDialDebounceTime = 0; // last time the dial switch was toggled
 long lastCountDebounceTime = 0;
-const long debounceDelay = 50;    // the debounce time; increase if the output flickers
-const long countDebounceDelay = 10;
+#define debounceDelay 50    // the debounce time; increase if the output flickers
+#define countDebounceDelay 10
 
 State phoneState = nodial;
 

  wave.play();
}


void setup() {
  

FatReader f;      // This holds the information for the file we're play
WaveHC wave;      // This is the only wave (audio) object, since we will only play one at a time

#define hangPin  6 //pin for reciever switch. closed (HIGH) when hung up, open (LOW) when off the hook
#define dialPin 7 //pin for dialing switch. close (HIGH) when  dialing, open (LOW) when not dialing
#define countPin 8 //pin for counting switch.  closed (HIGH) for don't count, open (LOW) for each count
#define ledPin 13 //LED pin

int dialCount = 0;
#define DIAL_ARRAY_LEN 10
int dialArray[DIAL_ARRAY_LEN];
int dialIndex = 0;

