Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LM75B Color mbed yeswecancoap Rgb
lib/rgb.h
- Committer:
- de_geeter_alexander
- Date:
- 2015-10-23
- Revision:
- 1:e0a4afdbbffb
- Parent:
- 0:06473a4ace3b
File content as of revision 1:e0a4afdbbffb:
#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