Updated with option to return from BP screen to main screen, resolved screen navigation issues

Dependencies:   SDFileSystem TFTLCD_8bit ds3231 program mbed

Fork of poc_dis_5 by SenseSemi

Revision:
5:a3ea7c82b7e1
Parent:
4:6bd81bb1790d
--- a/main.cpp	Wed Mar 01 18:49:33 2017 +0000
+++ b/main.cpp	Thu Mar 30 11:34:04 2017 +0000
@@ -84,7 +84,7 @@
                 break;
                 
      case 7: 
-                state1=touch_again();     // determining the touch when readings are taken more than once screen 
+                state1=touch_again_ecg();     // determining the touch when readings are taken more than once screen 
                 state=0;
                 nstate1=state1;
                 break;
@@ -95,14 +95,24 @@
                 nstate1=state1;
                 break;           
                 
-                
+     case 9:    state1=touch_again_glc();  
+                state=0;
+                nstate1=state1;
+                break;            
                 
      case 10 :  DisableTouch();
                  wait_ms(300);
                  EnableTouch();
                  state=nstate;
                   break;
-                
+                  
+                  
+      case 11:   state1=touch_again_bp();            
+                 state=0;
+                 nstate1=state1;
+                 break;
+      
+      
      default :  DisableTouch();
                  wait_ms(300);
                  EnableTouch();
@@ -170,7 +180,7 @@
                {
                   screen_again();    
                  state1=0;
-                 state=7;
+                 state=9;
                  nstate=state;
                  }
             else
@@ -247,7 +257,7 @@
                 EnableTouch();
                  break;*/
         
-     case 11: 
+     case 9: 
                 DisableTouch();
                 screen_bp2();      // bp main screen
                 bp();              // measuring bp