Changes done in ECG and BT
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 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);