Modification into 17th July New display demo code

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Ext_Demo_17July2017_newdis by SenseSemi

Revision:
9:d0ecb61d219e
Parent:
7:11f926351d8f
Child:
10:aeff3309002a
--- 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 ;