 void loop() {
 
 
-
+  // Check for new command 
   while (Serial.available() && toggleComplete == false ) {
     char inChar = (char)Serial.read();
     if(inChar == 'E'){ // end character for toggle LED

  
}

void heartRainbowCycle(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256; j++) { // 5 cycles of all colors on wheel
    for(i=0; i< heart_strip.numPixels(); i++) {
      heart_strip.setPixelColor(i, Wheel(((i * 256 / heart_strip.numPixels()) + j) & 255));
    }
    heart_strip.show();
    delay(wait);
  }
}



}

void parseInput()
{
  char charHolder[inputString.length()+1];
  
  inputString.toCharArray(charHolder,inputString.length()+1);
  
  if(inputString.startsWith("FP")){

    eye_state = FEEL_POSITIVE;

    bright_level = atoi(charHolder+2);
 
  }else if (inputString.startsWith("FN")){

    eye_state = FEEL_NEGATIVE; 
    bright_level = atoi(charHolder+2);
 
  }else if (inputString.startsWith("WK")){

    // wake up
    eye_state = WAKEUP;
    
  }else if (inputString.startsWith("XX")){

    heart_state = FEEL_EXCITED;
    
  }else if (inputString.startsWith("SL")){
    eye_state = SLEEP;

  }else if (inputString.startsWith("HR")){

    heart_state = HRM_MODE;
    hrm_level = atoi(charHolder+2);
  }
    
  inputString = "";
  
}

void grow_color(int pause, int steps, byte R, byte G, byte B) { 

  int tmpR, tmpG, tmpB;         // Temp values
  
  // Fade up
  for (int s=1; s<=steps; s++) {
    tmpR = (R * s) / steps;     // Multiply first to avoid truncation errors  
    tmpG = (G * s) / steps;
    tmpB = (B * s) / steps;
    
    for (int i=0; i<numEyePix; i++) {
      right_eye_strip.setPixelColor(i,tmpR,tmpG,tmpB);
      left_eye_strip.setPixelColor(i,tmpR,tmpG,tmpB);
    }
    right_eye_strip.show();
    left_eye_strip.show();
    delay(pause);
  }    

  // Fade down
  for (int s=steps; s>0; s--) {
    tmpR = (R * s) / steps;     // Multiply first to avoid truncation errors  
    tmpG = (G * s) / steps;
    tmpB = (B * s) / steps;
    
    for (int i=0; i<numEyePix; i++) {
      right_eye_strip.setPixelColor(i,tmpR,tmpG,tmpB);
      left_eye_strip.setPixelColor(i,tmpR,tmpG,tmpB);
    }
    
    right_eye_strip.show();
    left_eye_strip.show();
    delay(pause);
  }    

  delay(pause * 10);
}


void heartBeat (int rate){

