Fix all the following issues which we faced during 01st April internal demo 1) Display hang and jump issue 2) Sequencing issue 3) Issue with BP code
Dependencies: SDFileSystem ds3231 program mbed testUniGraphic_150217
Fork of Int_Demo_01Apr2017_newdisplaycode_bp_nikita by
Diff: display_modules.cpp
- Revision:
- 6:5e33a0f01476
- Parent:
- 5:a3ea7c82b7e1
- Child:
- 7:11f926351d8f
--- a/display_modules.cpp Thu Mar 30 11:34:04 2017 +0000 +++ b/display_modules.cpp Sat Apr 01 06:37:02 2017 +0000 @@ -47,8 +47,8 @@ lcd.FillRect(5,20,250,150,COLOR_BLACK); //lcd.Print( "SenseSmart", CENTER, 95); sprintf(buff2 ,"%d", pid); - lcd.Print( "PATIENT ID",20,50,COLOR_YELLOW,COLOR_BLACK, 0); - lcd.Print(buff2,200,50,COLOR_YELLOW,COLOR_BLACK, 0); + lcd.Print( "PATIENTID",20,50,COLOR_YELLOW,COLOR_BLACK, 0); ///////// + lcd.Print(buff2,170,50,COLOR_YELLOW,COLOR_BLACK, 0); lcd.SetFont(&TerminusBigFont); // lcd.FillRect(5,120,230,320,COLOR_BLACK); @@ -202,7 +202,26 @@ } - + void bp_countdown() // ECG measurement countdown + { + char tim1[5]; + + // lcd.DrawRect(20,90,90,40,COLOR_BLACK); + // lcd.FillRect(5,127,230,320,COLOR_BLACK); + lcd.FillRoundRect(3,130,200,200,COLOR_BLACK); + lcd.FillRoundRect(60,230,180,300,COLOR_BLACK); + lcd.FillRect(5,215,230,290,COLOR_BLACK); + lcd.Print( "BP starts in", CENTER, 95); + for(int i=5;i>=0;i--) + { + wait(1); + sprintf (tim1, "%d",i); + lcd.Print( tim1,120,120,COLOR_YELLOW,COLOR_BLACK, 0); + } + + lcd.Print( "Tst in Progres",3,150,COLOR_GREEN,COLOR_BLACK,0); + + } void screen_again() // screen to press 'yes' or 'no' to repeat the test {