Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CW_copy by
Diff: operation.h
- 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
