   
   /* MAXIMUM VALUE */
   tft.fillRect(52, 100, 45, 25, ILI9341_LIGHTGREY);
-  tft.setCursor(63, 105);
+  (DEFAULT_ECG_MAX + biasECGMax < 100) ? tft.setCursor(63,105) : tft.setCursor(56,105);
   tft.setTextSize(2);
   tft.setTextColor(ILI9341_BLACK);
   tft.printf("%d", DEFAULT_ECG_MAX + biasECGMax);

 */
 
 //Write labels
char Title[] = "Texas Engineering World Health";
char Version[] = "Patient Monitor v2.1";
char ecgTitle[] = "ECG/HR (bpm)";
char ecgLabel[] = "ECG";
char sp02Title[] = "sp02 (%Sat.)";

Button sp_button = Button(0,BOXSIZE,BOXSIZE,BOXSIZE,ILI9341_GREEN,true,&tft);
Button temp_button = Button(0,BOXSIZE*2,BOXSIZE,BOXSIZE,ILI9341_BLUE,true,&tft);
Button alarm_button = Button(260,200,BOXSIZE,BOXSIZE,ILI9341_RED,true,&tft);
Button confirm_button = Button(0,200,BOXSIZE,BOXSIZE,ILI9341_GREEN,true,&tft);
Button mode_button = Button(BOXSIZE*2,200,BOXSIZE,BOXSIZE,ILI9341_LIGHTGREY,true,&tft);
Button cancel_button = Button(WIDTH-BOXSIZE,200,BOXSIZE,BOXSIZE,ILI9341_RED,true,&tft);
Button default_button = Button(WIDTH-2*BOXSIZE-18,BOXSIZE,BOXSIZE,BOXSIZE-20,ILI9341_LIGHTGREY,true,&tft);
// Create settings page buttons

/*for ECGMin value*/
