 void loopHeartRate() {
   offset = (offset + 1) % beatLength;
 
-//  serialOutput();
   if (pulseFound == true && pulseBpm <= maxBpm) {
-//    serialOutputWhenBeatHappens();
     bpm = pulseBpm;
   } else {
     bpm = staticBpm;

  bpm = staticBpm;
  
  if (pulseBeatFound == true){
//    offset = 0;
//    serialOutputWhenBeatHappens();
//    Serial.println(bpm);
    pulseBeatFound = false;
  }


int targetMagnitude = maxMagnitude;
int adjustedMagnitude = maxMagnitude;

// pulse state
volatile boolean pulseFound = false; // "True" when User's live heartbeat is detected. "False" when not a "live beat". 
volatile boolean pulseBeatFound = false; // becomes true when Arduoino finds a beat.
volatile boolean hasPulse = false; // 

CRGB leds[2][NUM_LEDS_CH1];

