Changes done in ECG and BT

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of merged_code2_20sept_2017_4th_oct_2017 by nikita teggi

Committer:
nikitateggi
Date:
Wed Mar 01 18:49:33 2017 +0000
Revision:
4:6bd81bb1790d
Parent:
3:9a06c2bed650
Child:
5:a3ea7c82b7e1
POC code with eeprom

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nikitateggi 0:c47fb0c1bbf6 1 #include "mbed.h"
nikitateggi 0:c47fb0c1bbf6 2 #include "ili9325.h"
nikitateggi 0:c47fb0c1bbf6 3 #include "lcd_base.h"
nikitateggi 0:c47fb0c1bbf6 4 #include "display_modules.h"
nikitateggi 0:c47fb0c1bbf6 5 #include "touch_modules.h"
nikitateggi 1:8316c23ec6b9 6 #include "rtc.h"
nikitateggi 3:9a06c2bed650 7 //#include "main.h"
nikitateggi 0:c47fb0c1bbf6 8
nikitateggi 0:c47fb0c1bbf6 9
nikitateggi 4:6bd81bb1790d 10 BusOut dataBus( PTC12, PTC13, PTB10, PTC9, PTD4, PTD5, PTD6, PTD7 ); // 16 pins//POC DISPALY 240*320 pixels
nikitateggi 0:c47fb0c1bbf6 11 ILI9325_LCD lcd( PTC5, PTB9, PTC0, PTB0, &dataBus, NC, PTE31);
nikitateggi 0:c47fb0c1bbf6 12
nikitateggi 0:c47fb0c1bbf6 13
nikitateggi 1:8316c23ec6b9 14 void init_screen() // initializing the screen
nikitateggi 1:8316c23ec6b9 15 {
nikitateggi 1:8316c23ec6b9 16 lcd.Initialize(PORTRAIT);
nikitateggi 1:8316c23ec6b9 17 }
nikitateggi 0:c47fb0c1bbf6 18
nikitateggi 4:6bd81bb1790d 19 void screen_main() //main screen
nikitateggi 0:c47fb0c1bbf6 20 {
nikitateggi 1:8316c23ec6b9 21 char buff1[32];
nikitateggi 1:8316c23ec6b9 22 time_t epoch_time;
nikitateggi 1:8316c23ec6b9 23 lcd.ClearScreen();
nikitateggi 1:8316c23ec6b9 24 lcd.SetFont(&TerminusFont);
nikitateggi 4:6bd81bb1790d 25 epoch_time=rtc_read(); // read the time from rtc module
nikitateggi 4:6bd81bb1790d 26 sprintf(buff1 ,"%s", ctime(&epoch_time)); // display time on LCD
nikitateggi 1:8316c23ec6b9 27 lcd.Print( buff1,20,100,COLOR_YELLOW,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 28 lcd.SetFont(&TerminusBigFont);
nikitateggi 1:8316c23ec6b9 29 lcd.Print( "SENSESEMI",50,20,COLOR_WHITE,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 30 lcd.Print( "SenseSmart",45,60,COLOR_WHITE,COLOR_BLACK, 0);// align text to center horizontally and use starndard colors
nikitateggi 1:8316c23ec6b9 31 lcd.FillRoundRect(60,130,180,200,COLOR_YELLOW);
nikitateggi 1:8316c23ec6b9 32 lcd.Print( "SYS",100,140,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 1:8316c23ec6b9 33 lcd.Print( "CONFIG",70,170,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 1:8316c23ec6b9 34 lcd.FillRoundRect(60,230,180,300,COLOR_GREEN);
nikitateggi 1:8316c23ec6b9 35 lcd.Print( "TEST",90,250,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 36
nikitateggi 3:9a06c2bed650 37 }
nikitateggi 1:8316c23ec6b9 38
nikitateggi 4:6bd81bb1790d 39
nikitateggi 4:6bd81bb1790d 40
nikitateggi 4:6bd81bb1790d 41 void screen_main_2(int pid) // test main screen
nikitateggi 1:8316c23ec6b9 42 {
nikitateggi 1:8316c23ec6b9 43
nikitateggi 1:8316c23ec6b9 44 char buff2[10];
nikitateggi 3:9a06c2bed650 45
nikitateggi 1:8316c23ec6b9 46 lcd.FillRect(5,10,250,120,COLOR_BLACK);
nikitateggi 1:8316c23ec6b9 47 //lcd.Print( "SenseSmart", CENTER, 95);
nikitateggi 4:6bd81bb1790d 48 sprintf(buff2 ,"%d", pid);
nikitateggi 4:6bd81bb1790d 49 lcd.Print( "PATIENT ID",20,50,COLOR_YELLOW,COLOR_BLACK, 0);
nikitateggi 4:6bd81bb1790d 50 lcd.Print(buff2,200,50,COLOR_YELLOW,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 51
nikitateggi 1:8316c23ec6b9 52 lcd.SetFont(&TerminusBigFont);
nikitateggi 3:9a06c2bed650 53 // lcd.FillRect(5,120,230,320,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 54 lcd.FillRoundRect(60,130,180,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 55 lcd.FillRoundRect(60,230,180,300,COLOR_BLACK);
nikitateggi 0:c47fb0c1bbf6 56 lcd.FillRoundRect(10,130,100,200,COLOR_CYAN);
nikitateggi 0:c47fb0c1bbf6 57 lcd.Print( "BG",40,160,COLOR_BLACK,COLOR_CYAN,0);
nikitateggi 0:c47fb0c1bbf6 58 lcd.FillRoundRect(130,130,220,200,COLOR_YELLOW);
nikitateggi 0:c47fb0c1bbf6 59 lcd.Print( "ECG",160,160,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 0:c47fb0c1bbf6 60 lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
nikitateggi 0:c47fb0c1bbf6 61 lcd.Print( "BP",40,245,COLOR_BLACK,COLOR_MAGENTA,0);
nikitateggi 0:c47fb0c1bbf6 62 lcd.FillRoundRect(130,215,220,285,COLOR_GREEN);
nikitateggi 1:8316c23ec6b9 63 lcd.Print( "HOME",150,245,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 64
nikitateggi 1:8316c23ec6b9 65 }
nikitateggi 1:8316c23ec6b9 66
nikitateggi 1:8316c23ec6b9 67
nikitateggi 0:c47fb0c1bbf6 68
nikitateggi 4:6bd81bb1790d 69 void screen_main_1() // System Configuration main screen
nikitateggi 1:8316c23ec6b9 70 {
nikitateggi 3:9a06c2bed650 71
nikitateggi 1:8316c23ec6b9 72 lcd.SetFont(&TerminusBigFont);
nikitateggi 1:8316c23ec6b9 73 lcd.FillRect(5,127,230,320,COLOR_BLACK);
nikitateggi 1:8316c23ec6b9 74 lcd.FillRoundRect(10,130,100,200,COLOR_CYAN);
nikitateggi 1:8316c23ec6b9 75 lcd.Print( "BLE",30,160,COLOR_BLACK,COLOR_CYAN,0);
nikitateggi 1:8316c23ec6b9 76 lcd.FillRoundRect(130,130,220,200,COLOR_YELLOW);
nikitateggi 1:8316c23ec6b9 77 lcd.Print( "ERASE",140,160,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 1:8316c23ec6b9 78 lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
nikitateggi 1:8316c23ec6b9 79 lcd.Print( "FILE",20,245,COLOR_BLACK,COLOR_MAGENTA,0);
nikitateggi 1:8316c23ec6b9 80 lcd.FillRoundRect(130,215,220,285,COLOR_GREEN);
nikitateggi 1:8316c23ec6b9 81 lcd.Print( "HOME",145,245,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 82
nikitateggi 1:8316c23ec6b9 83 }
nikitateggi 0:c47fb0c1bbf6 84
nikitateggi 0:c47fb0c1bbf6 85
nikitateggi 4:6bd81bb1790d 86 void screen_ecg() //ECG screen 1
nikitateggi 0:c47fb0c1bbf6 87 {
nikitateggi 3:9a06c2bed650 88
nikitateggi 3:9a06c2bed650 89 // lcd.FillRect(5,127,230,320,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 90 lcd.FillRoundRect(10,130,100,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 91 lcd.FillRoundRect(130,130,220,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 92 lcd.FillRoundRect(10,215,100,285,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 93 lcd.FillRoundRect(130,215,220,285,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 94 lcd.FillRoundRect(60,130,180,200,COLOR_YELLOW);
nikitateggi 4:6bd81bb1790d 95 lcd.Print( "START",80,150,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 4:6bd81bb1790d 96 // lcd.Print( "CONFIG",70,170,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 1:8316c23ec6b9 97 lcd.FillRoundRect(60,230,180,300,COLOR_GREEN);
nikitateggi 1:8316c23ec6b9 98 lcd.Print( "RET",100,250,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 99
nikitateggi 1:8316c23ec6b9 100 }
nikitateggi 1:8316c23ec6b9 101
nikitateggi 1:8316c23ec6b9 102
nikitateggi 0:c47fb0c1bbf6 103
nikitateggi 4:6bd81bb1790d 104 void screen_ecg_2() // ECG screen 2
nikitateggi 1:8316c23ec6b9 105 {
nikitateggi 3:9a06c2bed650 106
nikitateggi 4:6bd81bb1790d 107 lcd.FillRect(5,90,230,150,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 108 lcd.Print( " Tst is Done ",3,100,COLOR_GREEN,COLOR_BLACK,0);
nikitateggi 4:6bd81bb1790d 109 lcd.Print( " HeartRate ",3,150,COLOR_GREEN,COLOR_BLACK,0);
nikitateggi 4:6bd81bb1790d 110 lcd.Print( " 72 bpm",3,180,COLOR_CYAN,COLOR_BLACK,0);
nikitateggi 3:9a06c2bed650 111 // lcd.Print( "DONE", CENTER, 95);
nikitateggi 4:6bd81bb1790d 112 // lcd.Print( "s Done ",80,150,COLOR_GREEN,COLOR_BLACK,0);
nikitateggi 4:6bd81bb1790d 113 lcd.FillRect(10,215,230,290,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 114 // lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
nikitateggi 3:9a06c2bed650 115 // lcd.FillRoundRect(130,215,220,285,COLOR_GREEN);
nikitateggi 4:6bd81bb1790d 116 lcd.FillRoundRect(60,230,180,300,COLOR_GREEN);
nikitateggi 4:6bd81bb1790d 117 lcd.Print( "RET",100,250,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 118
nikitateggi 1:8316c23ec6b9 119 }
nikitateggi 1:8316c23ec6b9 120
nikitateggi 1:8316c23ec6b9 121
nikitateggi 0:c47fb0c1bbf6 122
nikitateggi 4:6bd81bb1790d 123 void screen_bp() // BP main screen
nikitateggi 0:c47fb0c1bbf6 124 {
nikitateggi 4:6bd81bb1790d 125 lcd.FillRoundRect(10,130,100,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 126 lcd.FillRoundRect(130,130,220,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 127 lcd.FillRoundRect(10,215,100,285,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 128 lcd.FillRoundRect(130,215,220,285,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 129 lcd.FillRoundRect(60,130,180,200,COLOR_YELLOW);
nikitateggi 4:6bd81bb1790d 130 lcd.Print( "START",80,150,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 4:6bd81bb1790d 131 // lcd.Print( "CONFIG",70,170,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 4:6bd81bb1790d 132 lcd.FillRoundRect(60,230,180,300,COLOR_GREEN);
nikitateggi 4:6bd81bb1790d 133 lcd.Print( "RET",100,250,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 134
nikitateggi 3:9a06c2bed650 135 }
nikitateggi 3:9a06c2bed650 136
nikitateggi 4:6bd81bb1790d 137
nikitateggi 4:6bd81bb1790d 138 void screen_bp1(float SBP, float DBP) // BP screen 2
nikitateggi 3:9a06c2bed650 139 {
nikitateggi 4:6bd81bb1790d 140
nikitateggi 4:6bd81bb1790d 141 char buf[10];
nikitateggi 3:9a06c2bed650 142 lcd.FillRoundRect(3,130,200,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 143 lcd.FillRoundRect(60,230,180,300,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 144 sprintf (buf, "SBP: %f",SBP);
nikitateggi 4:6bd81bb1790d 145 lcd.Print( buf, 5,100,COLOR_CYAN,COLOR_BLACK, 0);
nikitateggi 4:6bd81bb1790d 146 sprintf (buf, "DBP: %f",DBP);
nikitateggi 4:6bd81bb1790d 147 lcd.Print( buf, 5,150,COLOR_CYAN,COLOR_BLACK, 0);
nikitateggi 4:6bd81bb1790d 148 lcd.FillRoundRect(60,230,180,300,COLOR_GREEN);
nikitateggi 4:6bd81bb1790d 149 lcd.Print( "RET",100,250,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 150 }
nikitateggi 3:9a06c2bed650 151
nikitateggi 3:9a06c2bed650 152
nikitateggi 3:9a06c2bed650 153
nikitateggi 0:c47fb0c1bbf6 154
nikitateggi 0:c47fb0c1bbf6 155
nikitateggi 1:8316c23ec6b9 156 void screen_glc() // glc main screen
nikitateggi 0:c47fb0c1bbf6 157 {
nikitateggi 3:9a06c2bed650 158
nikitateggi 1:8316c23ec6b9 159 //lcd.FillRect(5,127,230,320,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 160 // lcd.FillRect(5,127,230,320,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 161 lcd.FillRoundRect(10,130,100,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 162 lcd.FillRoundRect(130,130,220,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 163 lcd.FillRoundRect(10,215,100,285,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 164 lcd.FillRoundRect(130,215,220,285,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 165 lcd.FillRoundRect(60,130,180,200,COLOR_YELLOW);
nikitateggi 4:6bd81bb1790d 166 lcd.Print( "START",80,150,COLOR_BLACK,COLOR_YELLOW,0);
nikitateggi 4:6bd81bb1790d 167 lcd.FillRoundRect(60,230,180,300,COLOR_GREEN);
nikitateggi 4:6bd81bb1790d 168 lcd.Print( "RET",100,250,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 3:9a06c2bed650 169
nikitateggi 0:c47fb0c1bbf6 170 }
nikitateggi 0:c47fb0c1bbf6 171
nikitateggi 4:6bd81bb1790d 172
nikitateggi 4:6bd81bb1790d 173 void screen_bp2() //BP screen 3
nikitateggi 3:9a06c2bed650 174 {
nikitateggi 3:9a06c2bed650 175
nikitateggi 3:9a06c2bed650 176 lcd.FillRoundRect(3,130,200,200,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 177 lcd.FillRoundRect(60,230,180,300,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 178 lcd.FillRect(5,215,230,290,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 179
nikitateggi 3:9a06c2bed650 180 }
nikitateggi 1:8316c23ec6b9 181
nikitateggi 1:8316c23ec6b9 182
nikitateggi 4:6bd81bb1790d 183 void ecg_countdown() // ECG measurement countdown
nikitateggi 1:8316c23ec6b9 184 {
nikitateggi 1:8316c23ec6b9 185 char tim1[5];
nikitateggi 3:9a06c2bed650 186
nikitateggi 3:9a06c2bed650 187 // lcd.DrawRect(20,90,90,40,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 188 // lcd.FillRect(5,127,230,320,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 189 lcd.FillRoundRect(3,130,200,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 190 lcd.FillRoundRect(60,230,180,300,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 191 lcd.FillRect(5,215,230,290,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 192 lcd.Print( "ECG starts in", CENTER, 95);
nikitateggi 4:6bd81bb1790d 193 for(int i=5;i>=0;i--)
nikitateggi 1:8316c23ec6b9 194 {
nikitateggi 1:8316c23ec6b9 195 wait(1);
nikitateggi 1:8316c23ec6b9 196 sprintf (tim1, "%d",i);
nikitateggi 1:8316c23ec6b9 197 lcd.Print( tim1,120,120,COLOR_YELLOW,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 198 }
nikitateggi 4:6bd81bb1790d 199
nikitateggi 4:6bd81bb1790d 200 lcd.Print( "Tst in Progres",3,150,COLOR_GREEN,COLOR_BLACK,0);
nikitateggi 3:9a06c2bed650 201
nikitateggi 1:8316c23ec6b9 202 }
nikitateggi 1:8316c23ec6b9 203
nikitateggi 1:8316c23ec6b9 204
nikitateggi 1:8316c23ec6b9 205
nikitateggi 4:6bd81bb1790d 206 void screen_again() // screen to press 'yes' or 'no' to repeat the test
nikitateggi 1:8316c23ec6b9 207 {
nikitateggi 3:9a06c2bed650 208
nikitateggi 1:8316c23ec6b9 209 //lcd.DrawRect(20,90,90,40,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 210 lcd.FillRect(5,127,230,200,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 211 lcd.Print( "Take test",50,130 ,COLOR_CYAN,COLOR_BLACK, 0);
nikitateggi 4:6bd81bb1790d 212 lcd.Print( "again?",75,160 ,COLOR_CYAN,COLOR_BLACK, 0);
nikitateggi 4:6bd81bb1790d 213 lcd.Print( "YES",30,245,COLOR_BLACK,COLOR_MAGENTA,0);
nikitateggi 4:6bd81bb1790d 214 lcd.Print( " NO ",150,245,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 1:8316c23ec6b9 215 //lcd.FillRect(5 ,127,230,200,COLOR_BLACK);
nikitateggi 1:8316c23ec6b9 216 }
nikitateggi 1:8316c23ec6b9 217
nikitateggi 1:8316c23ec6b9 218
nikitateggi 4:6bd81bb1790d 219 void screen_glc_2() // GLC screen 3 after test
nikitateggi 1:8316c23ec6b9 220 {
nikitateggi 3:9a06c2bed650 221
nikitateggi 1:8316c23ec6b9 222 lcd.FillRect(5,127,230,320,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 223 lcd.FillRoundRect(60,230,180,300,COLOR_GREEN);
nikitateggi 4:6bd81bb1790d 224 lcd.Print( "RET",100,250,COLOR_BLACK,COLOR_GREEN,0);
nikitateggi 1:8316c23ec6b9 225 }
nikitateggi 1:8316c23ec6b9 226
nikitateggi 4:6bd81bb1790d 227
nikitateggi 4:6bd81bb1790d 228 void glc_1() // GLC screen
nikitateggi 1:8316c23ec6b9 229 {
nikitateggi 3:9a06c2bed650 230
nikitateggi 3:9a06c2bed650 231 lcd.FillRoundRect(3,130,200,200,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 232 lcd.FillRoundRect(60,230,180,300,COLOR_BLACK);
nikitateggi 3:9a06c2bed650 233 lcd.FillRect(5,215,230,290,COLOR_BLACK);
nikitateggi 4:6bd81bb1790d 234 lcd.Print( "BLOOD GLUCOSE",20,130 ,COLOR_CYAN,COLOR_BLACK, 0); // align text to center horizontally and use starndard colors
nikitateggi 4:6bd81bb1790d 235 lcd.Print( "Insert strip",5,160,COLOR_MAGENTA,COLOR_BLACK, 0); // align text to center horizontally and use starndard colors
nikitateggi 1:8316c23ec6b9 236 }
nikitateggi 1:8316c23ec6b9 237
nikitateggi 4:6bd81bb1790d 238 void glc_2() // GLC screen
nikitateggi 1:8316c23ec6b9 239 {
nikitateggi 3:9a06c2bed650 240
nikitateggi 1:8316c23ec6b9 241 lcd.Print( "Strip Detected",5,160, COLOR_GREEN,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 242 lcd.Print( "Insert Blood",5,190,COLOR_RED,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 243 }
nikitateggi 0:c47fb0c1bbf6 244
nikitateggi 4:6bd81bb1790d 245
nikitateggi 4:6bd81bb1790d 246 void glc_3() // GLC screen
nikitateggi 1:8316c23ec6b9 247 {
nikitateggi 3:9a06c2bed650 248
nikitateggi 1:8316c23ec6b9 249 lcd.Print( "Blood Detected",5,190,COLOR_GREEN,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 250 lcd.Print( "computing", 5,220,COLOR_MAGENTA,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 251 }
nikitateggi 1:8316c23ec6b9 252
nikitateggi 4:6bd81bb1790d 253
nikitateggi 4:6bd81bb1790d 254 void glc_4(unsigned int mgdl) // GLC screen to display blood glucose level on the LCD
nikitateggi 1:8316c23ec6b9 255 {
nikitateggi 3:9a06c2bed650 256
nikitateggi 4:6bd81bb1790d 257 lcd.FillRect(5,127,230,320,COLOR_BLACK);
nikitateggi 1:8316c23ec6b9 258 char buf[10];
nikitateggi 4:6bd81bb1790d 259 sprintf (buf, " BG %d mg/dl",mgdl);
nikitateggi 1:8316c23ec6b9 260 lcd.Print( buf, 5,100,COLOR_YELLOW,COLOR_BLACK, 0);
nikitateggi 1:8316c23ec6b9 261 }