   start = millis();
 
   while (i < SAMPLES_TO_AVERAGE) {
-    pulse.fetchLedData();
-    red += pulse.ps1;
-    IR1 += pulse.ps2;
-    IR2 += pulse.ps3;
+    fetchLedData();
+    red += ps1;
+    IR1 += ps2;
+    IR2 += ps3;
     i++;
   }
 


  //Init Heart Rate Sensor
  //initPulseSensor();
  
    LED_OFF();
}

void expanderWrite(int i2caddr, byte data)

  expanderWrite(ExpanderAddress, 0x00);
}

void GREEN_LED_ON() {
  expanderWrite(ExpanderAddress, 0xF7);
}

void RED_LED_ON() {
  expanderWrite(ExpanderAddress, 0xEF);
}

void BLUE_LED_ON() {
  expanderWrite(ExpanderAddress, 0xDF);
}

void LED_FLASH() {      //Flash Green LED for a few seconds
