Machine Vision Status TCP Server

Dependencies:   C12832 EthernetInterface mbed-rtos mbed ConfigFile

Revision:
3:254a2671a8e3
Parent:
2:a8eebf64cd3e
Child:
5:7a32c081a3fa
--- a/StatusIndicator.h	Thu Mar 05 15:32:22 2015 +0000
+++ b/StatusIndicator.h	Fri Mar 06 08:20:56 2015 +0000
@@ -3,18 +3,30 @@
 
 #include "mbed.h"
 
+#define STR_FAIL "FAIL"
+#define STR_OK "OK"
+#define STR_CLEAR "CLEAR"
+
 namespace MachineVision{
     
+    enum Indication { OK, FAIL, CLEAR };
+    
     class StatusIndicator{
         public:
 
         private:
-
+            PwmOut rOut;
+            PwmOut gOut;
+            PwmOut bOut;
 
         public:
-
+            StatusIndicator(PinName red_pin, PinName green_pin, PinName blue_pin);
+            void setStatus(Indication indication);  
 
         private:
+            void initializeRGB(void);
+            void setRGB(int r, int g, int b);
+            void clearRGB(void);
 
     };
 }