Arne Desmet
/
RGB
RGB led thing
Diff: lib/RGB.h
- Revision:
- 1:5801c141ea90
- Parent:
- 0:4dc676502a4e
--- a/lib/RGB.h Thu Nov 19 15:55:39 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ - -#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