Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341 by
Diff: display_modules.cpp
- Revision:
- 13:5d3b478ea9c7
- Parent:
- 10:aeff3309002a
- Child:
- 15:208b146151ba
diff -r ab85607bb10a -r 5d3b478ea9c7 display_modules.cpp
--- a/display_modules.cpp Mon May 08 05:19:22 2017 +0000
+++ b/display_modules.cpp Sat May 27 05:47:55 2017 +0000
@@ -154,20 +154,21 @@
- void screen_ecg_2() // ECG screen 2
+ void screen_ecg_2(float heart_rate) // ECG screen 2
{
+ char buf[5];
backlight = 0 ;
TFT.BusEnable(true) ;
TFT.background(White) ;
TFT.foreground(Green) ;
-
+ sprintf (buf, "%.0f bpm",heart_rate);
TFT.fillrect(5,90,230,150,White);
TFT.locate(3,100) ;
TFT.printf(" Tst is Done ") ;
TFT.locate(3,150) ;
TFT.printf(" HeartRate ") ;
- TFT.locate(3,180);
- TFT.printf(" 72 bpm") ;
+ TFT.locate(30,180);
+ TFT.printf(buf) ;
TFT.background(Green) ;
TFT.fillrect(10,215,230,290,White);
TFT.fillrect(60,230,180,300,Green);
