Changes done in ECG and BT
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 by
display_modules.cpp@45:067673dae242, 2017-09-12 (annotated)
- Committer:
- nikitateggi
- Date:
- Tue Sep 12 10:08:04 2017 +0000
- Revision:
- 45:067673dae242
- Parent:
- 39:69b09bd87502
- Child:
- 49:3ff80c4bc1be
added bluetooth ack timeout, batterymonitoring and pid tracking in sd card
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nikitateggi | 0:c47fb0c1bbf6 | 1 | #include "mbed.h" |
nikitateggi | 0:c47fb0c1bbf6 | 2 | #include "display_modules.h" |
nikitateggi | 0:c47fb0c1bbf6 | 3 | #include "touch_modules.h" |
nikitateggi | 1:8316c23ec6b9 | 4 | #include "rtc.h" |
nikitateggi | 3:9a06c2bed650 | 5 | //#include "main.h" |
nikitateggi | 29:7edc76b15e3d | 6 | #include "ILI9341.h" |
nikitateggi | 29:7edc76b15e3d | 7 | //#include <ILI932x.h> |
nikitateggi | 7:11f926351d8f | 8 | #include "Arial12x12.h" |
nikitateggi | 7:11f926351d8f | 9 | #include "Arial24x23.h" |
nikitateggi | 7:11f926351d8f | 10 | //#include "Terminal6x8.h" |
nikitateggi | 7:11f926351d8f | 11 | //#include "Arial43x48_numb.h" |
nikitateggi | 0:c47fb0c1bbf6 | 12 | |
nikitateggi | 0:c47fb0c1bbf6 | 13 | |
nikitateggi | 7:11f926351d8f | 14 | //BusOut dataBus( PTC12, PTC13, PTB10, PTC9, PTD4, PTD5, PTD6, PTD7 ); // 16 pins//POC DISPALY 240*320 pixels |
nikitateggi | 7:11f926351d8f | 15 | //ILI9325_LCD lcd( PTC5, PTB9, PTC0, PTB0, &dataBus, NC, PTE31); |
nikitateggi | 0:c47fb0c1bbf6 | 16 | |
nikitateggi | 29:7edc76b15e3d | 17 | /*PinName buspins[8]={PTC12, PTC13, PTB10, PTC9, PTD4, PTD5, PTD6, PTD7 }; |
nikitateggi | 21:7ef1b0b40841 | 18 | ILI932x TFT(BUS_8, buspins, PTC5, PTB9, PTC0, PTB0,PTE31,"SPFD5408_2.4") ; |
nikitateggi | 29:7edc76b15e3d | 19 | DigitalOut backlight(PTC9) ;*/ |
nikitateggi | 29:7edc76b15e3d | 20 | |
nikitateggi | 29:7edc76b15e3d | 21 | PinName buspins[8]={PTD2, PTC13, PTB10, PTC9, PTD4, PTD5, PTD6, PTD7 }; //new_display ili9341 |
nikitateggi | 29:7edc76b15e3d | 22 | ILI9341 TFT(BUS_8, buspins, PTB0, PTB9, PTC0, PTB8,PTE31,"SPFD5408_2.4") ; |
nikitateggi | 7:11f926351d8f | 23 | DigitalOut backlight(PTC9) ; |
nikitateggi | 0:c47fb0c1bbf6 | 24 | |
nikitateggi | 1:8316c23ec6b9 | 25 | void init_screen() // initializing the screen |
nikitateggi | 1:8316c23ec6b9 | 26 | { |
nikitateggi | 7:11f926351d8f | 27 | //Configure the display driver |
nikitateggi | 7:11f926351d8f | 28 | TFT.FastWindow(true) ; |
nikitateggi | 7:11f926351d8f | 29 | TFT.background(Black); |
nikitateggi | 7:11f926351d8f | 30 | TFT.foreground(White); |
nikitateggi | 7:11f926351d8f | 31 | wait(0.01) ; |
nikitateggi | 7:11f926351d8f | 32 | TFT.cls(); |
nikitateggi | 1:8316c23ec6b9 | 33 | } |
nikitateggi | 0:c47fb0c1bbf6 | 34 | |
nikitateggi | 4:6bd81bb1790d | 35 | void screen_main() //main screen |
nikitateggi | 0:c47fb0c1bbf6 | 36 | { |
nikitateggi | 7:11f926351d8f | 37 | char buff1[32]; |
nikitateggi | 7:11f926351d8f | 38 | time_t epoch_time; |
nikitateggi | 7:11f926351d8f | 39 | epoch_time=rtc_read(); // read the time from rtc module |
nikitateggi | 7:11f926351d8f | 40 | strftime(buff1, 32, "%d-%m-%Y %H:%M",localtime(&epoch_time)); |
nikitateggi | 7:11f926351d8f | 41 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 42 | TFT.BusEnable(true) ; |
nikitateggi | 7:11f926351d8f | 43 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 44 | TFT.cls() ; |
nikitateggi | 20:7c64e6ecad76 | 45 | wait(0.1) ; |
nikitateggi | 7:11f926351d8f | 46 | TFT.set_font((unsigned char*) Arial12x12); |
nikitateggi | 7:11f926351d8f | 47 | TFT.foreground(Red); |
nikitateggi | 7:11f926351d8f | 48 | TFT.locate(20,100) ; |
nikitateggi | 20:7c64e6ecad76 | 49 | TFT.printf(buff1); |
nikitateggi | 20:7c64e6ecad76 | 50 | TFT.set_font((unsigned char*) Arial24x23); |
nikitateggi | 20:7c64e6ecad76 | 51 | TFT.foreground(Black); |
nikitateggi | 45:067673dae242 | 52 | TFT.locate(35,30) ; |
nikitateggi | 7:11f926351d8f | 53 | TFT.printf("SENSESEMI") ; |
nikitateggi | 7:11f926351d8f | 54 | TFT.locate(45,60) ; |
nikitateggi | 20:7c64e6ecad76 | 55 | TFT.printf("Sense POC") ; |
nikitateggi | 20:7c64e6ecad76 | 56 | TFT.background(Olive) ; |
nikitateggi | 20:7c64e6ecad76 | 57 | TFT.fillrect( 60,130,180,200,Olive); |
nikitateggi | 20:7c64e6ecad76 | 58 | TFT.locate(100,140) ; |
nikitateggi | 7:11f926351d8f | 59 | TFT.printf("SYS") ; |
nikitateggi | 20:7c64e6ecad76 | 60 | TFT.locate(65,170) ; |
nikitateggi | 7:11f926351d8f | 61 | TFT.printf("CONFIG") ; |
nikitateggi | 20:7c64e6ecad76 | 62 | TFT.fillrect( 60,230,180,300,Olive); |
avp2417 | 35:43133f017ed4 | 63 | TFT.locate(88,252) ; //y :changed from 250 to 252 //x: changed from 90 to 88 //rashmi 22/7/17 //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 64 | TFT.printf("TEST") ; |
nikitateggi | 7:11f926351d8f | 65 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 66 | backlight = 1 ; |
nikitateggi | 3:9a06c2bed650 | 67 | |
nikitateggi | 3:9a06c2bed650 | 68 | } |
nikitateggi | 1:8316c23ec6b9 | 69 | |
nikitateggi | 4:6bd81bb1790d | 70 | |
nikitateggi | 4:6bd81bb1790d | 71 | |
nikitateggi | 39:69b09bd87502 | 72 | void screen_main_2(int32_t pid) // test main screen |
nikitateggi | 1:8316c23ec6b9 | 73 | { |
nikitateggi | 20:7c64e6ecad76 | 74 | char buff2[10]; |
nikitateggi | 20:7c64e6ecad76 | 75 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 76 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 77 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 78 | sprintf(buff2 ,"%d", pid); |
nikitateggi | 20:7c64e6ecad76 | 79 | TFT.fillrect(5,20,250,150,White ); |
nikitateggi | 39:69b09bd87502 | 80 | TFT.fillrect(5,20,250,250,White ); // added on 11/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 81 | TFT.fillrect(60,130,180,200,White ); |
nikitateggi | 39:69b09bd87502 | 82 | TFT.fillrect(60,230,180,300,White ); // changed from 300 to 320 //changed//8/8/17 |
nikitateggi | 39:69b09bd87502 | 83 | // TFT.fillrect(5,20,300,320,White ); |
nikitateggi | 39:69b09bd87502 | 84 | TFT.fillrect(5,230,240,320,White ); // added on 11/8/17 nikita |
nikitateggi | 7:11f926351d8f | 85 | TFT.set_font((unsigned char*) Arial24x23); |
nikitateggi | 20:7c64e6ecad76 | 86 | TFT.foreground(Black); |
nikitateggi | 20:7c64e6ecad76 | 87 | TFT.locate(10,50) ; |
nikitateggi | 7:11f926351d8f | 88 | TFT.printf("PATIENTID") ; |
nikitateggi | 20:7c64e6ecad76 | 89 | TFT.locate(180,50) ; |
nikitateggi | 7:11f926351d8f | 90 | TFT.printf(buff2) ; |
nikitateggi | 20:7c64e6ecad76 | 91 | TFT.background(Orange) ; |
nikitateggi | 20:7c64e6ecad76 | 92 | TFT.foreground(Black); |
nikitateggi | 20:7c64e6ecad76 | 93 | TFT.fillrect( 10,130,100,200,Orange); |
nikitateggi | 20:7c64e6ecad76 | 94 | TFT.locate(40,160) ; |
nikitateggi | 20:7c64e6ecad76 | 95 | TFT.printf("BG") ; |
nikitateggi | 20:7c64e6ecad76 | 96 | TFT.fillrect( 130,130,220,200,Orange); |
nikitateggi | 20:7c64e6ecad76 | 97 | TFT.locate(145,160) ; |
nikitateggi | 7:11f926351d8f | 98 | TFT.printf("ECG") ; |
nikitateggi | 20:7c64e6ecad76 | 99 | TFT.fillrect( 10,215,100,285,Orange); |
nikitateggi | 20:7c64e6ecad76 | 100 | TFT.locate(40,245) ; |
nikitateggi | 20:7c64e6ecad76 | 101 | TFT.printf("BP") ; |
nikitateggi | 20:7c64e6ecad76 | 102 | TFT.fillrect(130,215,220,285,Orange); |
nikitateggi | 20:7c64e6ecad76 | 103 | TFT.locate(130,245) ; |
nikitateggi | 20:7c64e6ecad76 | 104 | TFT.printf("HOME") ; |
nikitateggi | 7:11f926351d8f | 105 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 106 | backlight = 1 ; |
nikitateggi | 7:11f926351d8f | 107 | } |
nikitateggi | 1:8316c23ec6b9 | 108 | |
nikitateggi | 1:8316c23ec6b9 | 109 | |
nikitateggi | 0:c47fb0c1bbf6 | 110 | |
nikitateggi | 4:6bd81bb1790d | 111 | void screen_main_1() // System Configuration main screen |
nikitateggi | 1:8316c23ec6b9 | 112 | { |
nikitateggi | 20:7c64e6ecad76 | 113 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 114 | TFT.BusEnable(true) ; |
nikitateggi | 7:11f926351d8f | 115 | TFT.background(GreenYellow) ; |
nikitateggi | 20:7c64e6ecad76 | 116 | TFT.fillrect(5,127,230,320,White ); |
nikitateggi | 7:11f926351d8f | 117 | // wait(0.1) ; |
nikitateggi | 7:11f926351d8f | 118 | TFT.set_font((unsigned char*) Arial24x23); |
nikitateggi | 20:7c64e6ecad76 | 119 | TFT.foreground(Black); |
nikitateggi | 20:7c64e6ecad76 | 120 | TFT.fillrect( 10,130,100,200,GreenYellow); |
avp2417 | 35:43133f017ed4 | 121 | TFT.locate(38,160) ; //changed from 30 to 38 //rashmi 24/7/17 //changed from 40 to 30 //rashmi 22/7/17 |
avp2417 | 35:43133f017ed4 | 122 | TFT.printf("BT") ; ////changed from BLE to BT //rashmi 24/7/17 |
nikitateggi | 20:7c64e6ecad76 | 123 | TFT.fillrect( 130,130,220,200,GreenYellow); |
avp2417 | 35:43133f017ed4 | 124 | TFT.locate(145,160) ; //changed from 135 to 145 //rashmi 22/7/17 |
avp2417 | 35:43133f017ed4 | 125 | TFT.printf("DEL") ; //changed from ERASE to DEL //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 126 | TFT.fillrect( 10,215,100,285,GreenYellow); |
avp2417 | 35:43133f017ed4 | 127 | TFT.locate(22,245) ; //changed from 26 to 22 //rashmi 24/7/17 //changed from 30 to 26 //rashmi 22/7/17 |
avp2417 | 35:43133f017ed4 | 128 | TFT.printf("P-Inf") ; |
nikitateggi | 20:7c64e6ecad76 | 129 | TFT.fillrect(130,215,220,285,GreenYellow); |
nikitateggi | 20:7c64e6ecad76 | 130 | TFT.locate(130,245) ; |
nikitateggi | 20:7c64e6ecad76 | 131 | TFT.printf("HOME") ; |
nikitateggi | 7:11f926351d8f | 132 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 133 | backlight = 1 ; |
nikitateggi | 7:11f926351d8f | 134 | } |
nikitateggi | 0:c47fb0c1bbf6 | 135 | |
nikitateggi | 0:c47fb0c1bbf6 | 136 | |
nikitateggi | 4:6bd81bb1790d | 137 | void screen_ecg() //ECG screen 1 |
avp2417 | 35:43133f017ed4 | 138 | { |
nikitateggi | 20:7c64e6ecad76 | 139 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 140 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 141 | TFT.fillrect(10,130,100,200,White); |
nikitateggi | 20:7c64e6ecad76 | 142 | TFT.fillrect(130,130,220,200,White); |
nikitateggi | 20:7c64e6ecad76 | 143 | TFT.fillrect(130,215,220,285,White); |
nikitateggi | 20:7c64e6ecad76 | 144 | TFT.fillrect(10,215,100,285,White); |
nikitateggi | 20:7c64e6ecad76 | 145 | TFT.fillrect(60,130,180,200,White); |
nikitateggi | 45:067673dae242 | 146 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 38:7238f3531ce9 | 147 | TFT.background(Green) ; |
nikitateggi | 38:7238f3531ce9 | 148 | TFT.foreground(Black) ; |
nikitateggi | 7:11f926351d8f | 149 | TFT.fillrect( 60,130,180,200,Green); |
nikitateggi | 20:7c64e6ecad76 | 150 | TFT.locate(80,150) ; |
nikitateggi | 7:11f926351d8f | 151 | TFT.printf("START") ; |
nikitateggi | 20:7c64e6ecad76 | 152 | TFT.fillrect( 60,230,180,300,Green); |
nikitateggi | 20:7c64e6ecad76 | 153 | TFT.locate(85,250) ; |
nikitateggi | 20:7c64e6ecad76 | 154 | TFT.printf("MAIN") ; |
nikitateggi | 7:11f926351d8f | 155 | TFT.BusEnable(false) ; |
avp2417 | 35:43133f017ed4 | 156 | backlight = 1 ; |
avp2417 | 35:43133f017ed4 | 157 | } |
nikitateggi | 1:8316c23ec6b9 | 158 | |
nikitateggi | 1:8316c23ec6b9 | 159 | |
nikitateggi | 0:c47fb0c1bbf6 | 160 | |
nikitateggi | 22:ffa88619551d | 161 | void screen_ecg_2(uint16_t heart_rate) // ECG screen 2 |
nikitateggi | 1:8316c23ec6b9 | 162 | { |
nikitateggi | 20:7c64e6ecad76 | 163 | char buf[5]; |
nikitateggi | 20:7c64e6ecad76 | 164 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 165 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 166 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 167 | TFT.foreground(Green) ; |
nikitateggi | 22:ffa88619551d | 168 | sprintf (buf, "%d bpm",heart_rate); |
nikitateggi | 20:7c64e6ecad76 | 169 | TFT.fillrect(5,90,230,150,White); |
nikitateggi | 20:7c64e6ecad76 | 170 | TFT.locate(3,100) ; |
nikitateggi | 20:7c64e6ecad76 | 171 | TFT.printf(" ECG Tst Done ") ; |
nikitateggi | 20:7c64e6ecad76 | 172 | TFT.locate(3,150) ; |
nikitateggi | 20:7c64e6ecad76 | 173 | TFT.printf(" HeartRate ") ; |
nikitateggi | 20:7c64e6ecad76 | 174 | TFT.locate(50,180); // changed from 30 |
nikitateggi | 20:7c64e6ecad76 | 175 | TFT.printf(buf) ; |
nikitateggi | 39:69b09bd87502 | 176 | TFT.set_font((unsigned char*) Arial12x12); // added on 11/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 177 | TFT.locate(5,291) ; |
nikitateggi | 39:69b09bd87502 | 178 | TFT.foreground(Navy) ; |
nikitateggi | 39:69b09bd87502 | 179 | TFT.printf("Study Readings: Not for medical") ; // added on 8/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 180 | TFT.locate(35,300) ; |
nikitateggi | 39:69b09bd87502 | 181 | TFT.printf("diagnosis and treatment") ; |
nikitateggi | 39:69b09bd87502 | 182 | TFT.set_font((unsigned char*) Arial24x23); |
nikitateggi | 20:7c64e6ecad76 | 183 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 184 | backlight = 1 ; |
nikitateggi | 20:7c64e6ecad76 | 185 | } |
nikitateggi | 20:7c64e6ecad76 | 186 | |
nikitateggi | 20:7c64e6ecad76 | 187 | void screen_ecg_lead() // ECG screen for displaying no lead proper lead contact |
nikitateggi | 20:7c64e6ecad76 | 188 | { |
nikitateggi | 20:7c64e6ecad76 | 189 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 190 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 191 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 192 | TFT.foreground(Red) ; |
nikitateggi | 39:69b09bd87502 | 193 | //TFT.fillrect(5,90,230,150,White); |
nikitateggi | 39:69b09bd87502 | 194 | TFT.fillrect(5,90,230,200,White); // added on 11/08/2017 //nikita |
nikitateggi | 20:7c64e6ecad76 | 195 | TFT.locate(50,100) ; |
nikitateggi | 20:7c64e6ecad76 | 196 | TFT.printf("Re-check") ; |
nikitateggi | 20:7c64e6ecad76 | 197 | TFT.locate(3,130) ; |
nikitateggi | 20:7c64e6ecad76 | 198 | TFT.printf("Lead Connection") ; |
nikitateggi | 20:7c64e6ecad76 | 199 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 200 | backlight = 1 ; |
nikitateggi | 20:7c64e6ecad76 | 201 | } |
nikitateggi | 20:7c64e6ecad76 | 202 | |
nikitateggi | 20:7c64e6ecad76 | 203 | |
nikitateggi | 20:7c64e6ecad76 | 204 | void screen_ecg_lead_bp_fingerdetect() // ECG screen for displaying no lead proper lead contact |
nikitateggi | 20:7c64e6ecad76 | 205 | { |
nikitateggi | 20:7c64e6ecad76 | 206 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 207 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 208 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 209 | TFT.foreground(Red) ; |
nikitateggi | 39:69b09bd87502 | 210 | // TFT.fillrect(5,90,230,150,White); |
nikitateggi | 39:69b09bd87502 | 211 | TFT.fillrect(5,90,230,200,White); // added on 11/08/2017 //nikita |
nikitateggi | 20:7c64e6ecad76 | 212 | TFT.locate(20,100) ; |
nikitateggi | 20:7c64e6ecad76 | 213 | TFT.printf("Re-check Leads") ; |
nikitateggi | 20:7c64e6ecad76 | 214 | TFT.locate(50,130) ; |
nikitateggi | 20:7c64e6ecad76 | 215 | TFT.printf("& finger ") ; |
nikitateggi | 20:7c64e6ecad76 | 216 | TFT.locate(45,160) ; |
nikitateggi | 20:7c64e6ecad76 | 217 | TFT.printf("placement") ; |
nikitateggi | 20:7c64e6ecad76 | 218 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 219 | backlight = 1 ; |
nikitateggi | 20:7c64e6ecad76 | 220 | } |
nikitateggi | 20:7c64e6ecad76 | 221 | |
nikitateggi | 20:7c64e6ecad76 | 222 | void screen_ecg_bp() // added screen dispaly text //14/06 |
nikitateggi | 39:69b09bd87502 | 223 | { |
nikitateggi | 39:69b09bd87502 | 224 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 225 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 226 | TFT.background(Green) ; |
nikitateggi | 20:7c64e6ecad76 | 227 | TFT.fillrect(10,215,230,290,White); |
nikitateggi | 20:7c64e6ecad76 | 228 | //TFT.fillrect(60,230,180,300,Green); |
nikitateggi | 20:7c64e6ecad76 | 229 | //TFT.locate(100,250) ; |
nikitateggi | 20:7c64e6ecad76 | 230 | TFT.foreground(Black) ; |
nikitateggi | 20:7c64e6ecad76 | 231 | // TFT.printf("RET") ; |
nikitateggi | 20:7c64e6ecad76 | 232 | TFT.fillrect( 10,215,100,285,Green); |
avp2417 | 35:43133f017ed4 | 233 | TFT.locate(20,245) ; //changed from 30 to 20 //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 234 | TFT.printf("MAIN") ; |
nikitateggi | 20:7c64e6ecad76 | 235 | TFT.fillrect(130,215,220,285,Green); |
nikitateggi | 20:7c64e6ecad76 | 236 | TFT.locate(155,235) ; // changed // points // 13/06 |
nikitateggi | 20:7c64e6ecad76 | 237 | TFT.printf("RE-") ; |
avp2417 | 35:43133f017ed4 | 238 | TFT.locate(140,255) ; //chnaged from 145 to 140 //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 239 | TFT.printf("TEST") ; |
nikitateggi | 20:7c64e6ecad76 | 240 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 241 | backlight = 1 ; |
nikitateggi | 3:9a06c2bed650 | 242 | |
nikitateggi | 1:8316c23ec6b9 | 243 | } |
nikitateggi | 1:8316c23ec6b9 | 244 | |
nikitateggi | 1:8316c23ec6b9 | 245 | |
nikitateggi | 0:c47fb0c1bbf6 | 246 | |
nikitateggi | 4:6bd81bb1790d | 247 | void screen_bp() // BP main screen |
nikitateggi | 0:c47fb0c1bbf6 | 248 | { |
nikitateggi | 7:11f926351d8f | 249 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 250 | TFT.BusEnable(true) ; |
nikitateggi | 7:11f926351d8f | 251 | TFT.background(Green) ; |
nikitateggi | 7:11f926351d8f | 252 | TFT.foreground(Black) ; |
nikitateggi | 7:11f926351d8f | 253 | TFT.fillrect(10,130,100,200,White); |
nikitateggi | 7:11f926351d8f | 254 | TFT.fillrect(130,130,220,200,White); |
nikitateggi | 7:11f926351d8f | 255 | TFT.fillrect(10,215,100,285,White); |
nikitateggi | 45:067673dae242 | 256 | TFT.fillrect(130,215,220,285,White); |
nikitateggi | 45:067673dae242 | 257 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 7:11f926351d8f | 258 | TFT.fillrect( 60,130,180,200,Green); |
nikitateggi | 7:11f926351d8f | 259 | TFT.locate(80,150) ; |
nikitateggi | 7:11f926351d8f | 260 | TFT.printf("START") ; |
nikitateggi | 7:11f926351d8f | 261 | TFT.fillrect( 60,230,180,300,Green); |
avp2417 | 35:43133f017ed4 | 262 | TFT.locate(90,250) ; //changed from 100 to 90 //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 263 | TFT.printf("MAIN") ; |
nikitateggi | 7:11f926351d8f | 264 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 265 | backlight = 1 ; |
nikitateggi | 3:9a06c2bed650 | 266 | |
nikitateggi | 3:9a06c2bed650 | 267 | } |
nikitateggi | 3:9a06c2bed650 | 268 | |
nikitateggi | 4:6bd81bb1790d | 269 | |
nikitateggi | 39:69b09bd87502 | 270 | void screen_bp1(float SBP, float DBP) // BP screen 2 |
nikitateggi | 3:9a06c2bed650 | 271 | { |
nikitateggi | 7:11f926351d8f | 272 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 273 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 274 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 275 | TFT.foreground(Green) ; |
nikitateggi | 20:7c64e6ecad76 | 276 | char buf[10]; |
nikitateggi | 20:7c64e6ecad76 | 277 | TFT.fillrect(3,130,200,200,White); |
nikitateggi | 20:7c64e6ecad76 | 278 | TFT.fillrect(60,230,180,300,White); |
nikitateggi | 39:69b09bd87502 | 279 | TFT.fillrect(60,110,180,250,White); |
nikitateggi | 20:7c64e6ecad76 | 280 | TFT.locate(3,100) ; |
nikitateggi | 20:7c64e6ecad76 | 281 | TFT.printf(" BP Tst Done ") ; |
nikitateggi | 39:69b09bd87502 | 282 | // sprintf (buf, "SBP: %.0f ",SBP); // changed to display 2 digits after decimal point, 2May'17 Changed to Integer |
nikitateggi | 39:69b09bd87502 | 283 | sprintf (buf, "SBP: %d ",(uint32_t)SBP); //changed to integer 8/8/2017 |
nikitateggi | 20:7c64e6ecad76 | 284 | TFT.locate(5,140) ; // changed 100 to 150 |
nikitateggi | 7:11f926351d8f | 285 | TFT.printf(buf) ; |
nikitateggi | 39:69b09bd87502 | 286 | sprintf (buf, "DBP: %d",(uint32_t)DBP); //changed to integer 8/8/2017 |
nikitateggi | 39:69b09bd87502 | 287 | // sprintf (buf, "DBP: %.0f",DBP); // changed to display 2 digits after decimal point, 2May'17, Changed to integer |
nikitateggi | 20:7c64e6ecad76 | 288 | TFT.locate(5,170) ; // CHANGED from 150 to 170 |
nikitateggi | 20:7c64e6ecad76 | 289 | TFT.printf(buf) ; |
nikitateggi | 20:7c64e6ecad76 | 290 | //TFT.fillrect(60,230,180,300,Green); |
nikitateggi | 20:7c64e6ecad76 | 291 | //TFT.locate(85,250) ; |
nikitateggi | 20:7c64e6ecad76 | 292 | /* TFT.foreground(Black) ; // commented //16/06 |
nikitateggi | 20:7c64e6ecad76 | 293 | TFT.background(Green) ; |
nikitateggi | 20:7c64e6ecad76 | 294 | //TFT.printf("RET") ; |
nikitateggi | 20:7c64e6ecad76 | 295 | TFT.fillrect( 10,215,100,285,Green); |
nikitateggi | 20:7c64e6ecad76 | 296 | TFT.locate(30,245) ; |
nikitateggi | 20:7c64e6ecad76 | 297 | TFT.printf("RET") ; |
nikitateggi | 20:7c64e6ecad76 | 298 | TFT.fillrect(130,215,220,285,Green); |
nikitateggi | 20:7c64e6ecad76 | 299 | TFT.locate(155,235) ; // changed // points // 13/06 |
nikitateggi | 20:7c64e6ecad76 | 300 | TFT.printf("RE-") ; |
nikitateggi | 20:7c64e6ecad76 | 301 | TFT.locate(145,255) ; |
nikitateggi | 20:7c64e6ecad76 | 302 | TFT.printf("TEST") ; */ |
nikitateggi | 39:69b09bd87502 | 303 | TFT.set_font((unsigned char*) Arial12x12); |
nikitateggi | 39:69b09bd87502 | 304 | TFT.foreground(Navy) ; |
nikitateggi | 39:69b09bd87502 | 305 | TFT.locate(5,291) ; |
nikitateggi | 39:69b09bd87502 | 306 | TFT.printf("Study Readings: Not for medical") ; // added on 11/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 307 | TFT.locate(35,300) ; |
nikitateggi | 39:69b09bd87502 | 308 | TFT.printf("diagnosis and treatment") ; |
nikitateggi | 39:69b09bd87502 | 309 | TFT.set_font((unsigned char*) Arial24x23); |
nikitateggi | 20:7c64e6ecad76 | 310 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 311 | backlight = 1 ; |
nikitateggi | 3:9a06c2bed650 | 312 | } |
nikitateggi | 3:9a06c2bed650 | 313 | |
nikitateggi | 3:9a06c2bed650 | 314 | |
nikitateggi | 0:c47fb0c1bbf6 | 315 | |
nikitateggi | 0:c47fb0c1bbf6 | 316 | |
nikitateggi | 1:8316c23ec6b9 | 317 | void screen_glc() // glc main screen |
nikitateggi | 0:c47fb0c1bbf6 | 318 | { |
nikitateggi | 3:9a06c2bed650 | 319 | |
nikitateggi | 20:7c64e6ecad76 | 320 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 321 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 322 | TFT.background(Green) ; |
nikitateggi | 20:7c64e6ecad76 | 323 | TFT.foreground(Black) ; |
nikitateggi | 20:7c64e6ecad76 | 324 | TFT.fillrect(10,130,100,200,White); |
nikitateggi | 20:7c64e6ecad76 | 325 | TFT.fillrect(130,130,220,200,White); |
nikitateggi | 20:7c64e6ecad76 | 326 | TFT.fillrect(10,215,100,285,White); |
nikitateggi | 20:7c64e6ecad76 | 327 | TFT.fillrect(130,215,220,285,White); |
nikitateggi | 45:067673dae242 | 328 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 20:7c64e6ecad76 | 329 | // TFT.fillrect( 60,130,180,200,Green); |
nikitateggi | 20:7c64e6ecad76 | 330 | // TFT.locate(80,150) ; |
nikitateggi | 20:7c64e6ecad76 | 331 | // TFT.printf("START") ; |
nikitateggi | 20:7c64e6ecad76 | 332 | TFT.fillrect( 10,130,100,200,Green); |
nikitateggi | 20:7c64e6ecad76 | 333 | TFT.locate(30,160) ; // changed to 30 from 40 |
nikitateggi | 20:7c64e6ecad76 | 334 | TFT.printf("FBS") ; |
nikitateggi | 20:7c64e6ecad76 | 335 | TFT.fillrect( 130,130,220,200,Green); |
nikitateggi | 20:7c64e6ecad76 | 336 | TFT.locate(155,160) ; |
nikitateggi | 20:7c64e6ecad76 | 337 | TFT.printf("PP") ; |
nikitateggi | 20:7c64e6ecad76 | 338 | TFT.fillrect( 10,215,100,285,Green); |
avp2417 | 35:43133f017ed4 | 339 | TFT.locate(23,245) ; //changed from 20 to 23 //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 340 | TFT.printf("RAN") ; |
nikitateggi | 20:7c64e6ecad76 | 341 | TFT.fillrect(130,215,220,285,Green); |
avp2417 | 35:43133f017ed4 | 342 | TFT.locate(145,245); //changed from 150 to 145 //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 343 | TFT.printf("MAIN") ; |
nikitateggi | 20:7c64e6ecad76 | 344 | // TFT.fillrect( 60,230,180,300,Green); |
nikitateggi | 20:7c64e6ecad76 | 345 | // TFT.locate(100,250) ; |
nikitateggi | 20:7c64e6ecad76 | 346 | // TFT.printf("RET") ; |
nikitateggi | 7:11f926351d8f | 347 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 348 | backlight = 1 ; |
nikitateggi | 3:9a06c2bed650 | 349 | |
nikitateggi | 0:c47fb0c1bbf6 | 350 | } |
nikitateggi | 0:c47fb0c1bbf6 | 351 | |
nikitateggi | 4:6bd81bb1790d | 352 | |
nikitateggi | 4:6bd81bb1790d | 353 | void screen_bp2() //BP screen 3 |
nikitateggi | 3:9a06c2bed650 | 354 | { |
nikitateggi | 3:9a06c2bed650 | 355 | |
nikitateggi | 7:11f926351d8f | 356 | /* lcd.FillRoundRect(3,130,200,200,COLOR_BLACK); |
nikitateggi | 3:9a06c2bed650 | 357 | lcd.FillRoundRect(60,230,180,300,COLOR_BLACK); |
nikitateggi | 7:11f926351d8f | 358 | lcd.FillRect(5,215,230,290,COLOR_BLACK);*/ |
nikitateggi | 3:9a06c2bed650 | 359 | |
nikitateggi | 3:9a06c2bed650 | 360 | } |
nikitateggi | 1:8316c23ec6b9 | 361 | |
nikitateggi | 1:8316c23ec6b9 | 362 | |
nikitateggi | 39:69b09bd87502 | 363 | void ecg_countdown() // ECG measurement countdown |
nikitateggi | 1:8316c23ec6b9 | 364 | { |
nikitateggi | 20:7c64e6ecad76 | 365 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 366 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 367 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 368 | TFT.foreground(Green) ; |
nikitateggi | 20:7c64e6ecad76 | 369 | char tim1[5]; |
nikitateggi | 39:69b09bd87502 | 370 | TFT.fillrect(3,80,240,300,White); //changed on 11/8/17 nikita |
nikitateggi | 20:7c64e6ecad76 | 371 | TFT.fillrect(60,230,180,300,White); |
nikitateggi | 20:7c64e6ecad76 | 372 | TFT.fillrect(5,215,230,290,White); |
nikitateggi | 45:067673dae242 | 373 | TFT.fillrect(5,230,240,320,White ); |
nikitateggi | 20:7c64e6ecad76 | 374 | TFT.locate(25,100) ; |
nikitateggi | 20:7c64e6ecad76 | 375 | TFT.printf("ECG starts in") ; |
nikitateggi | 20:7c64e6ecad76 | 376 | for(int i=5;i>=0;i--) |
nikitateggi | 20:7c64e6ecad76 | 377 | { |
nikitateggi | 1:8316c23ec6b9 | 378 | wait(1); |
nikitateggi | 1:8316c23ec6b9 | 379 | sprintf (tim1, "%d",i); |
nikitateggi | 7:11f926351d8f | 380 | TFT.locate(120,120) ; |
nikitateggi | 20:7c64e6ecad76 | 381 | TFT.printf(tim1) ; |
nikitateggi | 20:7c64e6ecad76 | 382 | } |
nikitateggi | 39:69b09bd87502 | 383 | TFT.fillrect(5,80,240,200,White); |
nikitateggi | 39:69b09bd87502 | 384 | TFT.locate(35,110) ; |
nikitateggi | 39:69b09bd87502 | 385 | TFT.printf("ECG Tst in") ; // added on 11/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 386 | TFT.locate(50,140) ; |
nikitateggi | 39:69b09bd87502 | 387 | TFT.printf("progress") ; |
nikitateggi | 39:69b09bd87502 | 388 | TFT.BusEnable(false) ; |
nikitateggi | 39:69b09bd87502 | 389 | backlight = 1 ; |
nikitateggi | 7:11f926351d8f | 390 | |
nikitateggi | 3:9a06c2bed650 | 391 | |
nikitateggi | 39:69b09bd87502 | 392 | } |
nikitateggi | 1:8316c23ec6b9 | 393 | |
suhasini | 6:5e33a0f01476 | 394 | void bp_countdown() // ECG measurement countdown |
suhasini | 6:5e33a0f01476 | 395 | { |
nikitateggi | 20:7c64e6ecad76 | 396 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 397 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 398 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 399 | TFT.foreground(Green) ; |
nikitateggi | 20:7c64e6ecad76 | 400 | char tim1[5]; |
nikitateggi | 20:7c64e6ecad76 | 401 | TFT.fillrect(3,130,200,200,White); |
nikitateggi | 20:7c64e6ecad76 | 402 | TFT.fillrect(60,230,180,300,White); |
nikitateggi | 20:7c64e6ecad76 | 403 | TFT.fillrect(1,80,240,290,White); //changed the points// 13/06 |
nikitateggi | 39:69b09bd87502 | 404 | TFT.fillrect(5,230,240,320,White ); //added 11/8/17 |
nikitateggi | 20:7c64e6ecad76 | 405 | TFT.locate(25,100) ; |
nikitateggi | 20:7c64e6ecad76 | 406 | TFT.printf("BP starts in") ; |
nikitateggi | 20:7c64e6ecad76 | 407 | for(int i=5;i>=0;i--) |
suhasini | 6:5e33a0f01476 | 408 | { |
suhasini | 6:5e33a0f01476 | 409 | wait(1); |
suhasini | 6:5e33a0f01476 | 410 | sprintf (tim1, "%d",i); |
nikitateggi | 7:11f926351d8f | 411 | TFT.locate(120,120) ; |
nikitateggi | 20:7c64e6ecad76 | 412 | TFT.printf(tim1) ; |
suhasini | 6:5e33a0f01476 | 413 | } |
nikitateggi | 39:69b09bd87502 | 414 | TFT.fillrect(5,80,240,200,White); |
nikitateggi | 39:69b09bd87502 | 415 | TFT.locate(35,110) ; |
nikitateggi | 39:69b09bd87502 | 416 | TFT.printf("BP Tst in") ; // added on 11/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 417 | TFT.locate(50,140) ; |
nikitateggi | 39:69b09bd87502 | 418 | TFT.printf("progress") ; |
nikitateggi | 39:69b09bd87502 | 419 | |
nikitateggi | 7:11f926351d8f | 420 | TFT.BusEnable(false) ; |
nikitateggi | 7:11f926351d8f | 421 | backlight = 1 ; |
nikitateggi | 7:11f926351d8f | 422 | } |
nikitateggi | 1:8316c23ec6b9 | 423 | |
nikitateggi | 4:6bd81bb1790d | 424 | void screen_again() // screen to press 'yes' or 'no' to repeat the test |
nikitateggi | 7:11f926351d8f | 425 | { |
nikitateggi | 20:7c64e6ecad76 | 426 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 427 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 428 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 429 | TFT.foreground(Black) ; |
nikitateggi | 20:7c64e6ecad76 | 430 | TFT.fillrect(5,127,230,200,White); |
nikitateggi | 20:7c64e6ecad76 | 431 | TFT.locate(50,130) ; |
nikitateggi | 20:7c64e6ecad76 | 432 | TFT.printf("Take test") ; |
nikitateggi | 20:7c64e6ecad76 | 433 | TFT.locate(75,160) ; |
nikitateggi | 20:7c64e6ecad76 | 434 | TFT.printf("again?") ; |
nikitateggi | 20:7c64e6ecad76 | 435 | TFT.background(Orange) ; |
nikitateggi | 20:7c64e6ecad76 | 436 | TFT.locate(30,245) ; |
nikitateggi | 20:7c64e6ecad76 | 437 | TFT.printf("YES") ; |
nikitateggi | 20:7c64e6ecad76 | 438 | TFT.locate(135,245) ; |
nikitateggi | 20:7c64e6ecad76 | 439 | TFT.printf(" NO ") ; |
nikitateggi | 20:7c64e6ecad76 | 440 | backlight = 1 ; |
nikitateggi | 7:11f926351d8f | 441 | TFT.BusEnable(false) ; |
nikitateggi | 3:9a06c2bed650 | 442 | |
nikitateggi | 1:8316c23ec6b9 | 443 | } |
nikitateggi | 1:8316c23ec6b9 | 444 | |
nikitateggi | 1:8316c23ec6b9 | 445 | |
nikitateggi | 4:6bd81bb1790d | 446 | void screen_glc_2() // GLC screen 3 after test |
nikitateggi | 1:8316c23ec6b9 | 447 | { |
nikitateggi | 3:9a06c2bed650 | 448 | |
nikitateggi | 20:7c64e6ecad76 | 449 | backlight = 0 ; |
nikitateggi | 7:11f926351d8f | 450 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 451 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 452 | TFT.foreground(Black) ; |
nikitateggi | 32:76892fdf5e4c | 453 | TFT.fillrect(10,215,230,290,White); |
nikitateggi | 20:7c64e6ecad76 | 454 | //TFT.fillrect(60,230,180,300,Green); |
nikitateggi | 20:7c64e6ecad76 | 455 | //TFT.locate(85,250) ; |
nikitateggi | 20:7c64e6ecad76 | 456 | TFT.background(Green); |
nikitateggi | 20:7c64e6ecad76 | 457 | //TFT.printf("RET") ; |
nikitateggi | 20:7c64e6ecad76 | 458 | TFT.fillrect( 10,215,100,285,Green); |
avp2417 | 35:43133f017ed4 | 459 | TFT.locate(25,245) ; // changed from 30 to 25 //rashmi 22/7/17 |
nikitateggi | 20:7c64e6ecad76 | 460 | TFT.printf("MAIN") ; |
nikitateggi | 20:7c64e6ecad76 | 461 | TFT.fillrect(130,215,220,285,Green); |
nikitateggi | 20:7c64e6ecad76 | 462 | TFT.locate(155,235) ; // changed // points // 13/06 |
nikitateggi | 20:7c64e6ecad76 | 463 | TFT.printf("RE-") ; |
nikitateggi | 20:7c64e6ecad76 | 464 | TFT.locate(140,255) ; // changed from 145 to 140 |
nikitateggi | 20:7c64e6ecad76 | 465 | TFT.printf("TEST") ; |
nikitateggi | 20:7c64e6ecad76 | 466 | backlight = 1 ; |
nikitateggi | 20:7c64e6ecad76 | 467 | TFT.BusEnable(false) ; |
nikitateggi | 7:11f926351d8f | 468 | |
nikitateggi | 7:11f926351d8f | 469 | |
nikitateggi | 7:11f926351d8f | 470 | |
nikitateggi | 1:8316c23ec6b9 | 471 | } |
nikitateggi | 1:8316c23ec6b9 | 472 | |
nikitateggi | 4:6bd81bb1790d | 473 | |
nikitateggi | 4:6bd81bb1790d | 474 | void glc_1() // GLC screen |
nikitateggi | 7:11f926351d8f | 475 | { |
nikitateggi | 20:7c64e6ecad76 | 476 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 477 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 478 | TFT.background(White) ; |
nikitateggi | 20:7c64e6ecad76 | 479 | TFT.foreground(Magenta ) ; |
nikitateggi | 20:7c64e6ecad76 | 480 | TFT.fillrect(3,130,200,200,White); |
nikitateggi | 20:7c64e6ecad76 | 481 | TFT.fillrect(60,230,180,300,White); |
nikitateggi | 20:7c64e6ecad76 | 482 | TFT.fillrect(5,215,230,290,White); |
nikitateggi | 20:7c64e6ecad76 | 483 | TFT.fillrect( 130,130,220,200,White); |
nikitateggi | 39:69b09bd87502 | 484 | TFT.fillrect( 5,95,220,200,White); //added 11/8/17//45 to 5 nikita |
nikitateggi | 39:69b09bd87502 | 485 | TFT.fillrect(5,230,240,320,White ); |
nikitateggi | 20:7c64e6ecad76 | 486 | TFT.locate(5,130) ; |
nikitateggi | 20:7c64e6ecad76 | 487 | TFT.printf("Blood Glucose") ; |
nikitateggi | 20:7c64e6ecad76 | 488 | TFT.locate(5,160) ; |
nikitateggi | 20:7c64e6ecad76 | 489 | TFT.printf("Insert strip") ; |
nikitateggi | 20:7c64e6ecad76 | 490 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 491 | backlight = 1 ; |
nikitateggi | 7:11f926351d8f | 492 | |
nikitateggi | 7:11f926351d8f | 493 | |
nikitateggi | 7:11f926351d8f | 494 | |
nikitateggi | 1:8316c23ec6b9 | 495 | } |
nikitateggi | 1:8316c23ec6b9 | 496 | |
nikitateggi | 4:6bd81bb1790d | 497 | void glc_2() // GLC screen |
nikitateggi | 1:8316c23ec6b9 | 498 | { |
nikitateggi | 20:7c64e6ecad76 | 499 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 500 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 501 | TFT.locate(5,160) ; |
nikitateggi | 20:7c64e6ecad76 | 502 | TFT.printf("Strip Detected") ; |
nikitateggi | 20:7c64e6ecad76 | 503 | TFT.locate(5,190) ; |
nikitateggi | 20:7c64e6ecad76 | 504 | TFT.printf("Insert Blood") ; |
nikitateggi | 20:7c64e6ecad76 | 505 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 506 | backlight = 1 ; |
nikitateggi | 1:8316c23ec6b9 | 507 | } |
nikitateggi | 0:c47fb0c1bbf6 | 508 | |
nikitateggi | 4:6bd81bb1790d | 509 | |
nikitateggi | 4:6bd81bb1790d | 510 | void glc_3() // GLC screen |
nikitateggi | 1:8316c23ec6b9 | 511 | { |
nikitateggi | 20:7c64e6ecad76 | 512 | backlight = 0 ; |
nikitateggi | 45:067673dae242 | 513 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 514 | TFT.locate(5,190) ; |
nikitateggi | 20:7c64e6ecad76 | 515 | TFT.printf("Blood Detected") ; |
nikitateggi | 20:7c64e6ecad76 | 516 | TFT.locate( 5,220) ; |
nikitateggi | 20:7c64e6ecad76 | 517 | TFT.printf("computing") ; |
nikitateggi | 20:7c64e6ecad76 | 518 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 519 | backlight = 1 ; |
nikitateggi | 7:11f926351d8f | 520 | } |
nikitateggi | 1:8316c23ec6b9 | 521 | |
nikitateggi | 4:6bd81bb1790d | 522 | |
nidhinvarghese | 15:208b146151ba | 523 | void glc_4(uint16_t mgdl) // GLC screen to display blood glucose level on the LCD |
nikitateggi | 7:11f926351d8f | 524 | { |
nikitateggi | 20:7c64e6ecad76 | 525 | char buf[10]; |
nikitateggi | 20:7c64e6ecad76 | 526 | sprintf (buf, " BG %d mg/dl",mgdl); |
nikitateggi | 20:7c64e6ecad76 | 527 | backlight = 0 ; |
nikitateggi | 20:7c64e6ecad76 | 528 | TFT.BusEnable(true) ; |
nikitateggi | 20:7c64e6ecad76 | 529 | TFT.fillrect(5,127,230,320,White); |
nikitateggi | 20:7c64e6ecad76 | 530 | TFT.locate(3,100) ; |
nikitateggi | 20:7c64e6ecad76 | 531 | TFT.printf(" BG Tst Done ") ; |
nikitateggi | 20:7c64e6ecad76 | 532 | TFT.locate(5,130) ; |
nikitateggi | 7:11f926351d8f | 533 | TFT.printf(buf) ; |
nikitateggi | 20:7c64e6ecad76 | 534 | TFT.locate(5,160) ; |
nikitateggi | 20:7c64e6ecad76 | 535 | TFT.printf("(Range 70-120 mg/dl)") ; // added 16/06 |
nikitateggi | 39:69b09bd87502 | 536 | TFT.set_font((unsigned char*) Arial12x12); |
nikitateggi | 39:69b09bd87502 | 537 | TFT.foreground(Navy) ; |
nikitateggi | 39:69b09bd87502 | 538 | TFT.locate(5,291) ; |
nikitateggi | 39:69b09bd87502 | 539 | TFT.printf("Study Readings: Not for medical") ; // added on 11/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 540 | TFT.locate(35,300) ; |
nikitateggi | 39:69b09bd87502 | 541 | TFT.printf("diagnosis and treatment") ; |
nikitateggi | 39:69b09bd87502 | 542 | TFT.set_font((unsigned char*) Arial24x23); |
nikitateggi | 20:7c64e6ecad76 | 543 | TFT.BusEnable(false) ; |
nikitateggi | 20:7c64e6ecad76 | 544 | backlight = 1 ; |
nikitateggi | 20:7c64e6ecad76 | 545 | } |
nikitateggi | 22:ffa88619551d | 546 | |
nikitateggi | 22:ffa88619551d | 547 | |
avp2417 | 37:92fcbf22bf91 | 548 | void battery_screen_nocharge() |
nikitateggi | 22:ffa88619551d | 549 | { |
avp2417 | 37:92fcbf22bf91 | 550 | |
avp2417 | 37:92fcbf22bf91 | 551 | |
nikitateggi | 45:067673dae242 | 552 | backlight = 0 ; |
avp2417 | 37:92fcbf22bf91 | 553 | TFT.BusEnable(true) ; |
nikitateggi | 45:067673dae242 | 554 | TFT.background(Red) ; |
avp2417 | 37:92fcbf22bf91 | 555 | TFT.set_font((unsigned char*) Arial12x12); |
nikitateggi | 45:067673dae242 | 556 | TFT.foreground(White); |
nikitateggi | 45:067673dae242 | 557 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 45:067673dae242 | 558 | TFT.fillrect(5,5,95,20,Red); //added rect |
avp2417 | 37:92fcbf22bf91 | 559 | TFT.locate(10,8) ; |
avp2417 | 37:92fcbf22bf91 | 560 | TFT.printf("No Charge") ; |
avp2417 | 37:92fcbf22bf91 | 561 | TFT.set_font((unsigned char*) Arial24x23); |
avp2417 | 37:92fcbf22bf91 | 562 | TFT.BusEnable(false) ; |
avp2417 | 37:92fcbf22bf91 | 563 | backlight = 1 ; |
avp2417 | 37:92fcbf22bf91 | 564 | |
avp2417 | 37:92fcbf22bf91 | 565 | |
avp2417 | 37:92fcbf22bf91 | 566 | } |
avp2417 | 37:92fcbf22bf91 | 567 | |
avp2417 | 37:92fcbf22bf91 | 568 | void battery_screen_charge() |
avp2417 | 37:92fcbf22bf91 | 569 | { |
nikitateggi | 45:067673dae242 | 570 | |
nikitateggi | 22:ffa88619551d | 571 | backlight = 0 ; |
nikitateggi | 22:ffa88619551d | 572 | TFT.BusEnable(true) ; |
nikitateggi | 45:067673dae242 | 573 | TFT.background(Green) ; |
avp2417 | 37:92fcbf22bf91 | 574 | TFT.set_font((unsigned char*) Arial12x12); |
nikitateggi | 45:067673dae242 | 575 | TFT.foreground(Black); |
nikitateggi | 45:067673dae242 | 576 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 45:067673dae242 | 577 | TFT.fillrect(5,5,115,20,Green); //added rect |
avp2417 | 37:92fcbf22bf91 | 578 | TFT.locate(10,8) ; |
avp2417 | 37:92fcbf22bf91 | 579 | TFT.printf("Battery Charged") ; |
avp2417 | 37:92fcbf22bf91 | 580 | TFT.set_font((unsigned char*) Arial24x23); |
avp2417 | 37:92fcbf22bf91 | 581 | TFT.BusEnable(false) ; |
nikitateggi | 45:067673dae242 | 582 | backlight = 1 ; |
avp2417 | 37:92fcbf22bf91 | 583 | |
avp2417 | 37:92fcbf22bf91 | 584 | } |
avp2417 | 37:92fcbf22bf91 | 585 | |
avp2417 | 37:92fcbf22bf91 | 586 | |
avp2417 | 37:92fcbf22bf91 | 587 | |
avp2417 | 37:92fcbf22bf91 | 588 | void battery_critically_low_charge() |
avp2417 | 37:92fcbf22bf91 | 589 | { |
avp2417 | 37:92fcbf22bf91 | 590 | backlight = 0 ; |
nikitateggi | 22:ffa88619551d | 591 | TFT.BusEnable(true) ; |
nikitateggi | 45:067673dae242 | 592 | TFT.background(Red) ; |
avp2417 | 37:92fcbf22bf91 | 593 | TFT.set_font((unsigned char*) Arial12x12); |
nikitateggi | 45:067673dae242 | 594 | TFT.foreground(White); |
nikitateggi | 45:067673dae242 | 595 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 45:067673dae242 | 596 | TFT.fillrect(5,5,95,20,Red); //added rect |
avp2417 | 37:92fcbf22bf91 | 597 | TFT.locate(10,8) ; |
avp2417 | 37:92fcbf22bf91 | 598 | TFT.printf("Critically Low") ; |
avp2417 | 37:92fcbf22bf91 | 599 | TFT.set_font((unsigned char*) Arial24x23); |
avp2417 | 37:92fcbf22bf91 | 600 | TFT.BusEnable(false) ; |
avp2417 | 37:92fcbf22bf91 | 601 | backlight = 1 ; |
avp2417 | 37:92fcbf22bf91 | 602 | |
avp2417 | 37:92fcbf22bf91 | 603 | } |
avp2417 | 37:92fcbf22bf91 | 604 | |
avp2417 | 37:92fcbf22bf91 | 605 | void battery_low_charge() |
avp2417 | 37:92fcbf22bf91 | 606 | { |
nikitateggi | 45:067673dae242 | 607 | backlight = 0 ; |
avp2417 | 37:92fcbf22bf91 | 608 | TFT.BusEnable(true) ; |
nikitateggi | 45:067673dae242 | 609 | TFT.background(Green) ; |
avp2417 | 37:92fcbf22bf91 | 610 | TFT.set_font((unsigned char*) Arial12x12); |
nikitateggi | 45:067673dae242 | 611 | TFT.foreground(Black); |
nikitateggi | 45:067673dae242 | 612 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 45:067673dae242 | 613 | TFT.fillrect(5,5,95,20,Green); //added rect |
avp2417 | 37:92fcbf22bf91 | 614 | TFT.locate(10,8) ; |
avp2417 | 37:92fcbf22bf91 | 615 | TFT.printf("Low Battery") ; |
avp2417 | 37:92fcbf22bf91 | 616 | TFT.set_font((unsigned char*) Arial24x23); |
avp2417 | 37:92fcbf22bf91 | 617 | TFT.BusEnable(false) ; |
avp2417 | 37:92fcbf22bf91 | 618 | backlight = 1 ; |
avp2417 | 37:92fcbf22bf91 | 619 | |
avp2417 | 37:92fcbf22bf91 | 620 | } |
avp2417 | 35:43133f017ed4 | 621 | |
avp2417 | 35:43133f017ed4 | 622 | void screen_ecg_error() |
nikitateggi | 31:0f67acfc6236 | 623 | { |
nikitateggi | 31:0f67acfc6236 | 624 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 625 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 626 | TFT.background(White) ; |
nikitateggi | 31:0f67acfc6236 | 627 | TFT.foreground(Red) ; |
nikitateggi | 45:067673dae242 | 628 | TFT.fillrect(5,90,230,200,White); // added on 11/8/17 nikita |
nikitateggi | 45:067673dae242 | 629 | |
nikitateggi | 31:0f67acfc6236 | 630 | TFT.locate(50,100) ; |
nikitateggi | 31:0f67acfc6236 | 631 | TFT.printf("ERROR!") ; |
nikitateggi | 31:0f67acfc6236 | 632 | TFT.locate(20,130) ; |
nikitateggi | 31:0f67acfc6236 | 633 | TFT.printf("Take ReTest") ; |
nikitateggi | 31:0f67acfc6236 | 634 | //TFT.locate(45,160) ; |
nikitateggi | 31:0f67acfc6236 | 635 | // TFT.printf("") ; |
nikitateggi | 31:0f67acfc6236 | 636 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 637 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 638 | } |
nikitateggi | 31:0f67acfc6236 | 639 | |
nikitateggi | 31:0f67acfc6236 | 640 | void screen_bp_error() |
nikitateggi | 31:0f67acfc6236 | 641 | { |
nikitateggi | 31:0f67acfc6236 | 642 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 643 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 644 | TFT.background(White) ; |
nikitateggi | 31:0f67acfc6236 | 645 | TFT.foreground(Red) ; |
nikitateggi | 45:067673dae242 | 646 | TFT.fillrect(5,90,230,150,White); |
nikitateggi | 45:067673dae242 | 647 | |
nikitateggi | 31:0f67acfc6236 | 648 | TFT.locate(50,100) ; |
nikitateggi | 31:0f67acfc6236 | 649 | TFT.printf("ERROR!") ; |
nikitateggi | 31:0f67acfc6236 | 650 | TFT.locate(20,130) ; |
nikitateggi | 31:0f67acfc6236 | 651 | TFT.printf("Take ReTest") ; |
nikitateggi | 31:0f67acfc6236 | 652 | //TFT.locate(45,160) ; |
nikitateggi | 31:0f67acfc6236 | 653 | // TFT.printf("") ; |
nikitateggi | 31:0f67acfc6236 | 654 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 655 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 656 | } |
nikitateggi | 31:0f67acfc6236 | 657 | |
nikitateggi | 31:0f67acfc6236 | 658 | |
avp2417 | 35:43133f017ed4 | 659 | void glc_error() //glc replace test strip |
nikitateggi | 31:0f67acfc6236 | 660 | { |
nikitateggi | 31:0f67acfc6236 | 661 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 662 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 663 | TFT.background(White) ; |
nikitateggi | 31:0f67acfc6236 | 664 | TFT.foreground(Red) ; |
nikitateggi | 45:067673dae242 | 665 | TFT.fillrect(5,90,230,300,White); |
nikitateggi | 45:067673dae242 | 666 | |
avp2417 | 35:43133f017ed4 | 667 | TFT.locate(60,100) ; //changed from 50 to 60 //rashmi 22/7/17 |
avp2417 | 35:43133f017ed4 | 668 | TFT.printf("Replace") ; |
avp2417 | 35:43133f017ed4 | 669 | TFT.locate(40,130) ; //changed from 20 to 40 //rashmi 22/7/17 |
avp2417 | 35:43133f017ed4 | 670 | TFT.printf("Test Strip") ; |
nikitateggi | 31:0f67acfc6236 | 671 | //TFT.locate(45,160) ; |
nikitateggi | 31:0f67acfc6236 | 672 | // TFT.printf("") ; |
nikitateggi | 31:0f67acfc6236 | 673 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 674 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 675 | } |
nikitateggi | 31:0f67acfc6236 | 676 | |
nikitateggi | 31:0f67acfc6236 | 677 | |
avp2417 | 35:43133f017ed4 | 678 | void BT_connection() |
nikitateggi | 31:0f67acfc6236 | 679 | { |
nikitateggi | 31:0f67acfc6236 | 680 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 681 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 682 | TFT.background(White) ; |
nikitateggi | 31:0f67acfc6236 | 683 | TFT.foreground(Blue) ; |
nikitateggi | 45:067673dae242 | 684 | TFT.fillrect(5,90,230,300,White); |
nikitateggi | 45:067673dae242 | 685 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 31:0f67acfc6236 | 686 | TFT.locate(40,140) ; |
nikitateggi | 31:0f67acfc6236 | 687 | TFT.printf("Connected") ; |
nikitateggi | 31:0f67acfc6236 | 688 | TFT.locate(20,170) ; |
nikitateggi | 31:0f67acfc6236 | 689 | TFT.printf("Sending Files") ; |
nikitateggi | 31:0f67acfc6236 | 690 | //TFT.locate(45,160) ; |
nikitateggi | 31:0f67acfc6236 | 691 | // TFT.printf("") ; |
nikitateggi | 31:0f67acfc6236 | 692 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 693 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 694 | } |
nikitateggi | 31:0f67acfc6236 | 695 | |
nikitateggi | 31:0f67acfc6236 | 696 | void BT_no_connection() |
nikitateggi | 31:0f67acfc6236 | 697 | { |
nikitateggi | 31:0f67acfc6236 | 698 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 699 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 700 | TFT.background(White) ; |
nikitateggi | 31:0f67acfc6236 | 701 | TFT.foreground(Blue) ; |
nikitateggi | 45:067673dae242 | 702 | TFT.fillrect(5,90,230,300,White); |
nikitateggi | 45:067673dae242 | 703 | TFT.fillrect(5,5,115,20,White); |
nikitateggi | 31:0f67acfc6236 | 704 | TFT.locate(80,140) ; |
nikitateggi | 31:0f67acfc6236 | 705 | TFT.printf("Not") ; |
nikitateggi | 31:0f67acfc6236 | 706 | TFT.locate(40,160) ; |
nikitateggi | 31:0f67acfc6236 | 707 | TFT.printf("Connected") ; |
nikitateggi | 31:0f67acfc6236 | 708 | //TFT.locate(45,160) ; |
nikitateggi | 31:0f67acfc6236 | 709 | // TFT.printf("") ; |
nikitateggi | 31:0f67acfc6236 | 710 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 711 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 712 | } |
nikitateggi | 31:0f67acfc6236 | 713 | |
nikitateggi | 31:0f67acfc6236 | 714 | void BT_finished() |
nikitateggi | 31:0f67acfc6236 | 715 | { |
nikitateggi | 31:0f67acfc6236 | 716 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 717 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 718 | TFT.background(White) ; |
nikitateggi | 31:0f67acfc6236 | 719 | TFT.foreground(Blue) ; |
nikitateggi | 31:0f67acfc6236 | 720 | TFT.fillrect(5,90,230,300,White); |
nikitateggi | 45:067673dae242 | 721 | |
nikitateggi | 31:0f67acfc6236 | 722 | TFT.locate(20,140) ; |
nikitateggi | 31:0f67acfc6236 | 723 | TFT.printf("Files Tranfer") ; |
nikitateggi | 31:0f67acfc6236 | 724 | TFT.locate(40,170) ; |
nikitateggi | 31:0f67acfc6236 | 725 | TFT.printf("Completed") ; |
nikitateggi | 31:0f67acfc6236 | 726 | //TFT.locate(45,160) ; |
nikitateggi | 31:0f67acfc6236 | 727 | // TFT.printf("") ; |
nikitateggi | 31:0f67acfc6236 | 728 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 729 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 730 | } |
nikitateggi | 31:0f67acfc6236 | 731 | |
nikitateggi | 31:0f67acfc6236 | 732 | |
nikitateggi | 31:0f67acfc6236 | 733 | void screen_BT_return() // BT main screen |
nikitateggi | 31:0f67acfc6236 | 734 | { |
nikitateggi | 31:0f67acfc6236 | 735 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 736 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 737 | TFT.background(Green) ; |
nikitateggi | 31:0f67acfc6236 | 738 | TFT.foreground(Black) ; |
nikitateggi | 39:69b09bd87502 | 739 | // TFT.fillrect(5,90,230,300,White); |
nikitateggi | 45:067673dae242 | 740 | |
nikitateggi | 31:0f67acfc6236 | 741 | TFT.fillrect( 60,230,180,300,Green); |
nikitateggi | 31:0f67acfc6236 | 742 | TFT.locate(80,250) ; |
nikitateggi | 31:0f67acfc6236 | 743 | TFT.printf("MAIN") ; |
nikitateggi | 31:0f67acfc6236 | 744 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 745 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 746 | |
nikitateggi | 31:0f67acfc6236 | 747 | } |
nikitateggi | 31:0f67acfc6236 | 748 | |
nikitateggi | 31:0f67acfc6236 | 749 | |
nikitateggi | 31:0f67acfc6236 | 750 | void screen_patient_info(uint32_t current_test_pid,uint32_t bt_file_sent_pid) |
nikitateggi | 31:0f67acfc6236 | 751 | { |
avp2417 | 35:43133f017ed4 | 752 | |
nikitateggi | 31:0f67acfc6236 | 753 | char buf[10]; |
avp2417 | 35:43133f017ed4 | 754 | sprintf (buf, "Test pid:%d",current_test_pid); //changed from 'current pid' to 'Test pid' //rashmi 24/7/17 |
nikitateggi | 31:0f67acfc6236 | 755 | backlight = 0 ; |
nikitateggi | 31:0f67acfc6236 | 756 | TFT.BusEnable(true) ; |
nikitateggi | 31:0f67acfc6236 | 757 | TFT.background(White); |
nikitateggi | 31:0f67acfc6236 | 758 | TFT.foreground(Blue); |
nikitateggi | 31:0f67acfc6236 | 759 | TFT.fillrect(5,90,230,300,White); |
nikitateggi | 45:067673dae242 | 760 | TFT.fillrect(5,5,115,20,White); |
avp2417 | 35:43133f017ed4 | 761 | TFT.locate(15,140) ; //changed from 20 to 15 //rashmi 24/7/17 |
avp2417 | 35:43133f017ed4 | 762 | TFT.printf(buf) ; |
avp2417 | 35:43133f017ed4 | 763 | sprintf (buf,"BT pid :%d",bt_file_sent_pid); |
avp2417 | 35:43133f017ed4 | 764 | TFT.locate(15,170) ; //changed from 20 to 15 //rashmi 24/7/17 |
nikitateggi | 31:0f67acfc6236 | 765 | TFT.printf(buf) ; |
nikitateggi | 31:0f67acfc6236 | 766 | TFT.background(Green) ; |
nikitateggi | 31:0f67acfc6236 | 767 | TFT.foreground(Black) ; |
nikitateggi | 31:0f67acfc6236 | 768 | TFT.fillrect( 60,230,180,300,Green); |
nikitateggi | 31:0f67acfc6236 | 769 | TFT.locate(80,250) ; |
nikitateggi | 31:0f67acfc6236 | 770 | TFT.printf("MAIN") ; |
nikitateggi | 31:0f67acfc6236 | 771 | TFT.BusEnable(false) ; |
nikitateggi | 31:0f67acfc6236 | 772 | backlight = 1 ; |
nikitateggi | 31:0f67acfc6236 | 773 | |
nikitateggi | 39:69b09bd87502 | 774 | } |
nikitateggi | 39:69b09bd87502 | 775 | void glc_error_test_strip_removed() //glc replace test strip// // added on 8/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 776 | { |
nikitateggi | 39:69b09bd87502 | 777 | backlight = 0 ; |
nikitateggi | 39:69b09bd87502 | 778 | TFT.BusEnable(true) ; |
nikitateggi | 39:69b09bd87502 | 779 | TFT.background(White) ; |
nikitateggi | 39:69b09bd87502 | 780 | TFT.foreground(Red) ; |
nikitateggi | 39:69b09bd87502 | 781 | TFT.fillrect(5,90,230,300,White); |
nikitateggi | 45:067673dae242 | 782 | |
nikitateggi | 39:69b09bd87502 | 783 | TFT.locate(50,130); //changed from 50 to 60 //rashmi 22/7/17// changed from 100 to 130added on 10/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 784 | TFT.printf("Test Strip") ; |
nikitateggi | 39:69b09bd87502 | 785 | TFT.locate(50,160) ; //changed from 20 to 40 //rashmi 22/7/17// changed from 130 to 160added on 10/8/17 nikita |
nikitateggi | 39:69b09bd87502 | 786 | TFT.printf("Removed") ; |
nikitateggi | 39:69b09bd87502 | 787 | //TFT.locate(45,160) ; |
nikitateggi | 39:69b09bd87502 | 788 | // TFT.printf("") ; |
nikitateggi | 39:69b09bd87502 | 789 | TFT.BusEnable(false) ; |
nikitateggi | 39:69b09bd87502 | 790 | backlight = 1 ; |
nikitateggi | 39:69b09bd87502 | 791 | } |