code with new display driver ili9341

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Int_Demo_09May2017_Suhasini_HRavg_Nik_BT_ba_update4thJuly17_nikita7july by nikita teggi

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 
  {