test
Dependencies: LM75B Color mbed yeswecancoap Rgb
Diff: lib/rgb.h
- Revision:
- 2:ba4506b61052
- Parent:
- 1:e0a4afdbbffb
diff -r e0a4afdbbffb -r ba4506b61052 lib/rgb.h --- a/lib/rgb.h Fri Oct 23 14:48:16 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -#ifndef RGB_H -#define RGB_H -#include "mbed.h" -#include "color.h" -#include "LM75B.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); - void off(); - - private: - PwmOut* r_out; - PwmOut* g_out; - PwmOut* b_out; - float toFloat(int floater); - }; - -#endif \ No newline at end of file