joseph adamu / Mbed OS CW_final_thr

Fork of CW_copy by Calvin Kalintra

Revision:
1:dc648c5624b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/operation.h	Wed Jan 10 09:50:29 2018 +0000
@@ -0,0 +1,53 @@
+#include "mbed.h"
+#include "putty.h"
+int lcd_dis = 0;
+
+int get;
+Ticker pass;
+
+
+//******** checking the lcd dispaly ***********
+
+ void disp_check()
+{ 
+    while (1) {
+        if(lcd_dis == 0)
+        {
+            lcd_dis = 1;
+            }
+        else
+        {
+            lcd_dis = 0;
+        }
+    }
+}
+
+//**** function to hold the sensor data and storing of the 120 past records
+void dis_store_sensor_data()
+{ 
+    sensor_operation();
+    records();
+    
+}
+
+// function to hold the time_setting, date check and when the integer number is 1
+// displays the sensor lcd function and day check  else if the integer value is 0
+// displays the date and time 
+void tick()
+{
+    ss++;
+    time_rule();   
+    day_check();
+    lcd.cls();
+    if (lcd_dis == 1)
+    {
+        sensor_lcd();
+        dis_time();
+    }
+    
+    else if (lcd_dis == 0)
+    {
+        dis_dates();
+        dis_time();
+    }
+}
\ No newline at end of file