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.
RGBLed Class Reference
A wrapper for an RGB LED connected to a PWM. More...
#include <RGBLed.h>
| Public Member Functions | |
| void | init () | 
| Initialize the LED | |
| void | setColor (const float red, const float green, const float blue) | 
| Set the color of the RGB LED | |
Detailed Description
A wrapper for an RGB LED connected to a PWM.
This class simplifies the setting of the color and also provides some basic color definitions.
Definition at line 10 of file RGBLed.h.
Member Function Documentation
| void init | ( | ) | 
Initialize the LED
Definition at line 7 of file RGBLed.cpp.
| void setColor | ( | const float | red, | 
| const float | green, | ||
| const float | blue | ||
| ) | 
Set the color of the RGB LED
Definition at line 12 of file RGBLed.cpp.
Generated on Mon Aug 1 2022 05:31:13 by
 1.7.2
 1.7.2