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:
Fri Apr 28 10:40:36 2017 +0000
Parent:
8:adf2ba7e6412
Child:
10:aeff3309002a
Commit message:
with display settings modified for BP

Changed in this revision

display_modules.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/display_modules.cpp	Fri Apr 28 10:05:29 2017 +0000
+++ b/display_modules.cpp	Fri Apr 28 10:40:36 2017 +0000
@@ -210,17 +210,18 @@
        TFT.background(White) ;
         TFT.foreground(Green) ;
         char buf[10];  
-        TFT.fillrect(3,130,200,200,Black);
-         TFT.fillrect(60,230,180,300,Black);
-        sprintf (buf, "SBP: %f",SBP);
+        TFT.fillrect(3,130,200,200,White);
+         TFT.fillrect(60,230,180,300,White);
+        sprintf (buf, "SBP: %.2f   ",SBP);          // changed to display 2 digits after decimal point
         TFT.locate(5,100) ;
     TFT.printf(buf) ; 
-         sprintf (buf, "DBP: %f",DBP);
+         sprintf (buf, "DBP: %.2f",DBP);           // changed to display 2 digits after decimal point
           TFT.locate(5,150) ;
         TFT.printf(buf) ;
         TFT.fillrect(60,230,180,300,Green);
          TFT.locate(85,250) ;  
             TFT.foreground(Black) ;
+             TFT.background(Green) ;
          TFT.printf("RET") ;    
           TFT.BusEnable(false) ;
      backlight = 1 ;