Senseo / Mbed 2 deprecated Senseo_rts

Dependencies:   mbed-rtos mbed

Revision:
2:ff5abf6d887c
Child:
3:11ab070a3edb
diff -r a4507a30f549 -r ff5abf6d887c indicator.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/indicator.cpp	Tue Nov 22 10:59:11 2016 +0000
@@ -0,0 +1,38 @@
+#include "mbed.h"
+#include "indicator.h"
+
+Indicator::Indicator(PinName pin) : _pin(pin) {
+    _pin = 0;
+}
+    void indicator_thread()
+    {
+        while(1)
+        {
+            _pin= ledstatus;
+        }
+    }
+    
+    void Indicator::SetSituation()
+    {
+    
+    }
+    void Status(int situation,int ledstatus)
+    {
+        if(situation == 0)
+        {
+        ledstatus = 0;
+        }
+        else if(situation==1)
+        {
+        ledstatus = 1;
+        }
+        
+    }
+    void Indicator::SlowFlash(int situation,int ledstatus)
+    {
+        
+    }
+    void Indicator::FastFlash(int situation,int ledstatus)
+    {
+        
+    }
\ No newline at end of file