 
 // Create ECG trace
 ECGReadout ecg = ECGReadout(10,50,tft.height() - BOXSIZE, 100, 15 , 0, &tft);
-TS_Point p;
+//TS_Point p;
 
 /*
  * draw_submenu() - draws color box submenu on left of screen

        display_count += 1;
      }
}
void isr(void) {
  if (currentMode == HOMESCREEN && alarm_button.isTapped(p.x,p.y)){
    currentMode = ALARMSCREEN;
  }

  if (currentMode == HOMESCREEN){
    MainScreenInit();
    while (currentMode == HOMESCREEN){
      // dispECGWave();
      // Retrieve the touch point
      TS_Point p = getFixedCoordinates();
      //TS_Point p = ts.getPoint();
      // Scale from 0-4000 to tft.width() using calibration numbers
      //p.x = tft.height() - map(p.x, TS_MINX, TS_MAXX, 0, tft.height());
      //p.y = map(p.y, TS_MINY, TS_MAXY, 0, tft.width());
      //fixCoordinates(&(p.x), &(p.y));
      if (alarm_button.isTapped(p.x,p.y)){
        currentMode = ALARMSCREEN;
      }
    }
  }
  /*alarm screen*/
  if (currentMode == ALARMSCREEN){
    SettingsScreenInit();
    while(currentMode == ALARMSCREEN){
      TS_Point p = getFixedCoordinates();
      if(ECGPlus.isTapped(p.x,p.y)){
        biasECGMin += 1;
        /*for two digit numbers*/
