blood pressure monitor
Dependencies: mbed wave_player mbed-rtos 4DGL-uLCD-SE SDFileSystem_OldbutworkswithRTOS
Revision 5:5a658d23eb45, committed 2019-04-25
- Comitter:
- davidcho23
- Date:
- Thu Apr 25 18:09:06 2019 +0000
- Parent:
- 4:972399c63a6e
- Commit message:
- f
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Apr 19 20:06:05 2019 +0000 +++ b/main.cpp Thu Apr 25 18:09:06 2019 +0000 @@ -74,16 +74,13 @@ while(1) { lcd_mutex.lock(); uLCD.locate(0,1); - uLCD.printf("%3f",cur_data); + uLCD.printf("Systolic: %.3f", high_pressure); uLCD.locate(0,3); - /* - for (int i = 0; i < 200; i++) { - if (localMax[i] != 0.0) { - uLCD.printf("%3d",localMax[i]); - uLCD.printf(" "); - } - }*/ - uLCD.printf("%3f %3f %3f",heartRate,high_pressure,low_pressure); + uLCD.printf("Diastolic: %.3f", low_pressure); + uLCD.locate(0,5); + uLCD.printf("BPM: %.3f", heartRate); + uLCD.locate(0,7); + uLCD.printf("%3f",cur_data); lcd_mutex.unlock(); }