Modification into 17th July New display demo code
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of Ext_Demo_17July2017_newdis by
Diff: display_modules.cpp
- Revision:
- 10:aeff3309002a
- Parent:
- 9:d0ecb61d219e
- Child:
- 13:5d3b478ea9c7
diff -r d0ecb61d219e -r aeff3309002a display_modules.cpp --- a/display_modules.cpp Fri Apr 28 10:40:36 2017 +0000 +++ b/display_modules.cpp Wed May 03 05:32:37 2017 +0000 @@ -212,10 +212,10 @@ char buf[10]; 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 + sprintf (buf, "SBP: %.0f ",SBP); // changed to display 2 digits after decimal point, 2May'17 Changed to Integer TFT.locate(5,100) ; TFT.printf(buf) ; - sprintf (buf, "DBP: %.2f",DBP); // changed to display 2 digits after decimal point + sprintf (buf, "DBP: %.0f",DBP); // changed to display 2 digits after decimal point, 2May'17, Changed to integer TFT.locate(5,150) ; TFT.printf(buf) ; TFT.fillrect(60,230,180,300,Green);