Contains classes which are able to change the color of a LED

Dependents:   RGB

Revision:
0:8fd12f8121c1
Child:
1:671aa8173c2f
diff -r 000000000000 -r 8fd12f8121c1 RGB.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RGB.h	Mon Jan 18 18:51:35 2016 +0000
@@ -0,0 +1,27 @@
+
+#ifndef RGB_H
+#define RGB_H
+#include "mbed.h"
+#include "Color.h"
+
+class RGB{
+    public:
+        RGB(PinName r_pin, PinName g_pin, PinName b_pin);
+    
+        void setColor(Color color);
+        void setColor(int red, int green, int blue);
+        void setColor(int Color);
+        
+        Color* getColor();
+        void off();
+    private:
+        PwmOut* r_out;
+        PwmOut* g_out;
+        PwmOut* b_out;
+        
+        float toFloat(int intValue);
+        
+    
+};
+
+#endif
\ No newline at end of file