Saltware / Mbed 2 deprecated Water Play

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Revision:
20:521f795ea9d7
Parent:
19:ee89eabe1fa2
Child:
27:4f73f754fdc9
--- a/AlarmController.h	Mon Jun 13 12:33:52 2016 +0000
+++ b/AlarmController.h	Mon Jun 13 12:51:19 2016 +0000
@@ -13,8 +13,10 @@
          : Controller(threaded, interval_ms) {
             this->temp = temp;
             this->salt = salt;
-            this->proximity = proximity;    
-            this->error = false; 
+            this->proximity = proximity;     
+            this->error = false;
+            this->tempiscrit = false;
+            this->saltiscrit = false;
         }
         
         virtual void update();
@@ -24,6 +26,10 @@
         bool is_error();
         
         char *get_error_message();
+        
+        void buzzOnce();
+        void raiseAlarmTemp(bool);
+        void raiseAlarmSalt(bool);
 
     
     private:
@@ -35,6 +41,8 @@
         char *error_msg;       
         
         void activate_buzzer();
+        bool tempiscrit;
+        bool saltiscrit;
 };