     prevButtonState[i] = cur;
     }
   }
+  
+  //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@2
+  //if we're not in bypass mode and a change needs to be made
+  if (morseAvailable && (millis() - morStart > morLength))
+  {
+    //converts next char to a char pointer (Extra character for null terminator
+    char next[2];
+    String(morQue.peek()).toCharArray(next, 2);
+    Serial.println(morseMap.getValueOf(next));
+    Serial.println(morQue.peek());
+    //if the state is currently on
+    if (morState)
+    {
+      //if the next character is another dit or dah, you must wait one dot duration worth
+      //if (morseMap.getValueOf(next) % 10 == 1)
+     // {
+        
+     // }
+      
+    }
+    //just finished a pause, so no matter what we need the next character
+    else{
+      
+    }
+    //we have run out of characters
+    //if(!morQue.isEmpty())
+    //{
+      //morQue.pop(
+   //   Serial.println("Empty");
+   // }
+  }
+  
 
 }//end loop
 

      recString = recString.substring(0, endIndex);

      
      //PROCESS MORSE CODE
      if (recString.charAt(0) == '.' || recString.charAt(0) == '-') 
      {
        //Add to Queue
      }
   
      //PROCESS SEQUENCE  

boolean LEDon = false;



void setup() {
 
  Serial.begin(9600);
  for (int i = 0; i < 4; i++)
  {
    pinMode(btn[i], INPUT);
    pinMode(led[i], OUTPUT);
  }
  recString.reserve(400);


/*Since you can't store anything other than integers in this HashMap:
 * Last digit is if it should be on (1) or off(0) (use mod 10 to determine)
 * All other digits are how many units to perform the action (truncate divide by 10 to determine)
 */
morseMap[0](".", 11);
morseMap[1]("/", 31);
morseMap[2](" ", 30); //space between letters
morseMap[3]("|", 70); //space between words
morseMap[4]("?", 120);//space between messages (arbitrary, in case there are multiple)
//morseMap.debug(); //print it
/*According to Wikiepedia:
 * Length of dash is three times the length of a dot
 * Space between dash or dot is equal to the length of a dot
 * letters are seperated by a pause equal to the length of a dash (three dots)
 * words are seperated by 7 dots
 */
}


