Modification into 17th July New display demo code

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Ext_Demo_17July2017_newdis by SenseSemi

Revision:
20:7c64e6ecad76
Parent:
11:9a6545c2eb5d
--- a/ec_bp.cpp	Fri Jun 09 17:12:21 2017 +0000
+++ b/ec_bp.cpp	Sat Jun 17 09:36:18 2017 +0000
@@ -19,7 +19,7 @@
  unsigned int value4;
  unsigned int value5;
  unsigned int value6;
- unsigned int data1;
+ uint8_t data1;
  unsigned int count;
 
 //unsigned char chk2= 0;
@@ -173,6 +173,7 @@
 wait(0.5);
 regRead(REG_LOFF_STAT);//Read LOFF_STAT register
 printf("REG_LOFF_STAT register read from ADS for ecg setup is= 0x%X\n",data1); 
+
 }
 
 void doHelp(void) 
@@ -312,12 +313,13 @@
     ADS_START = 1;
   } 
   
-   void ecgsetupfunc()
+uint8_t ecgsetupfunc()
 { 
+  // uint8_t lead=0;
    ecgsetup();   // To set the ADS1291 registers for ECG signal generation
    cmdWrite(CMD_RDATAC) ;
    ADS_START = 1; 
-  
+   return data1;            // returns lead off reg value // 14/06
   }
   
     void ecgtestsetupfunc()