 
 #include "interface.h"
 
+#define ILI9341_GREENYELLOW 0xAFE5      /* 173, 255,  47 */
 #define CS_TOUCH 8
 #define CS_SCREEN  10
 #define DC 9

 * product_title() - prints product name and version no.
 */
void product_title(){
  tft.setCursor(BOXSIZE + 20, 0);
  tft.setTextSize(1);
  tft.println("Texas Engineering World Health");
  tft.setCursor(BOXSIZE + 40, 10);
  tft.println("Patient Monitor v1.0");
  tft.drawFastVLine(BOXSIZE + 17, 0, 20, ILI9341_WHITE);
  tft.drawFastHLine(BOXSIZE + 17, 20, 185, ILI9341_WHITE);
  tft.drawFastVLine(BOXSIZE + 202, 0, 20, ILI9341_WHITE);

	//draw_submenu();
}

/*
 * ECG_setup() - intialize ECG and HR interfaces
 */
void ECG_setup(){
  createHLabel(BOXSIZE + 55, 40, ecgTitle, 1, ILI9341_WHITE);
  createVLabel(0, 56, ecgLabel, 1, ILI9341_MAGENTA);
  createVLabel(tft.width()-45, 60, hrLabel, 1, ILI9341_MAGENTA);
  tft.setCursor(tft.width()-30, 60);
  tft.setTextSize(2);
  tft.println("60");
}

/*
 * sp02_setup() - intialize sp02 and % saturation interfaces
 */
void sp02_setup(){
  createHLabel(BOXSIZE + 55, 95, sp02Title, 1, ILI9341_WHITE);
  createVLabel(0, 111, sp02Label, 1, ILI9341_CYAN);
  createVLabel(tft.width()-50, 112, satLabel, 1, ILI9341_CYAN);
  tft.setCursor(tft.width()-40, 116);
  tft.setTextSize(2);
  tft.println("97%"); 
}

void temperature_setup(){
  createHLabel(BOXSIZE + 55, 150, tempTitle, 1, ILI9341_WHITE);
  createVLabel(30, 171, farLabel, 1, ILI9341_GREENYELLOW);
  createVLabel(tft.width()-120, 171, celLabel, 1, ILI9341_GREENYELLOW);
  tft.setCursor(50, 175);
  tft.setTextSize(2);
  tft.setTextColor(ILI9341_GREENYELLOW);
  tft.println("98.6");
  tft.setCursor(tft.width()-100, 175);
  tft.println("37");
}

void settings_setup(){
    alarm_button.draw();
    createHLabel(265, 210, alarmLabel, 1, ILI9341_BLACK);
    createHLabel(265, 220, settingsLabel, 1, ILI9341_BLACK);
}
/*
 * clearScreen(int color) - clear screen with specified color
 */
void clearScreen(int color){
    tft.fillRect(BOXSIZE,0,tft.width()-BOXSIZE,tft.height(),color);
}
