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

Files at this revision

API Documentation at this revision

Comitter:
nikitateggi
Date:
Wed Jun 21 08:39:10 2017 +0000
Parent:
20:7c64e6ecad76
Child:
22:ffa88619551d
Commit message:
poc code with ; 1. Finger detect for BP; 2. Lead off detect for ECG; 3. Modified display texts; 4. Modified display touch options for GLC; 5. Addition of RETEST option for all the three measurements(BP,BG,ECG)

Changed in this revision

bp.cpp Show annotated file Show diff for this revision Revisions of this file
display_modules.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/bp.cpp	Sat Jun 17 09:36:18 2017 +0000
+++ b/bp.cpp	Wed Jun 21 08:39:10 2017 +0000
@@ -166,7 +166,7 @@
 maxim_max30102_read_reg(0,&uch_dummy);
 while(INTR.read()==1); 
 maxim_max30102_read_fifo(&ppgdata); 
-
+bpr.printf("%d\n",ppgdata);
 if(un_min>ppgdata)
 un_min=ppgdata;    //update signal min
 if(un_max<ppgdata)
@@ -174,6 +174,8 @@
 
 }  
 
+bpr.printf("The max is %d\n", un_max); //
+bpr.printf("The min is %d\n", un_min);
 if (((un_max -un_min) > 300) && (lead_reg==0)) // Checking for threshold 300 Added Nidhin 16/6/17
 
 { //Added Nidhin 16/6/17
--- a/display_modules.cpp	Sat Jun 17 09:36:18 2017 +0000
+++ b/display_modules.cpp	Wed Jun 21 08:39:10 2017 +0000
@@ -3,6 +3,7 @@
 #include "touch_modules.h"
 #include "rtc.h"
 //#include "main.h"
+//#include "ILI9341.h"
 #include <ILI932x.h>
 #include "Arial12x12.h"
 #include "Arial24x23.h"
@@ -14,7 +15,7 @@
 //ILI9325_LCD lcd( PTC5, PTB9, PTC0, PTB0, &dataBus, NC, PTE31);
 
 PinName buspins[8]={PTC12, PTC13, PTB10, PTC9, PTD4, PTD5, PTD6, PTD7 };
-ILI932x TFT(BUS_8, buspins, PTC5, PTB9, PTC0, PTB0,PTE31,"SPFD5408_2.4") ;
+ILI932x TFT(BUS_8, buspins, PTC5, PTB9, PTC0, PTB0,PTE31,"SPFD5408_2.4") ; 
 DigitalOut backlight(PTC9) ;
 
  void init_screen()     // initializing the screen