Jens Vanhove / RgbLED

Dependencies:   C12832

Embed: (wiki syntax)

« Back to documentation index

RGBLed Class Reference

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.