27 #ifndef _EASYUINO_RGB_LED_h 28 #define _EASYUINO_RGB_LED_h 30 #include "Utilities.h" 36 enum LedType : uint8_t {
42 enum Color : uint8_t {
43 RED, GREEN, BLUE, YELLOW, WHITE, ORANGE, PINK, SALMON, VIOLET, AQUA, BROWN,
44 FIREBRICK, DARKGREY, OLIVE, SKYBLUE
67 RGBLed(IN uint8_t redPin, IN uint8_t greenPin, IN uint8_t bluePin);
75 RGBLed(IN uint8_t redPin, IN uint8_t greenPin, IN uint8_t bluePin, IN LedType ledType);
80 #pragma region Public Device API Methods 88 #pragma region Public RGBLed API Methods 98 void setColor(IN uint8_t red, IN uint8_t green, IN uint8_t blue);
103 void setColor(IN
char hexadecimalColorCode[8]);
void turnOff()
Turns off the led.
void setColor(IN uint8_t red, IN uint8_t green, IN uint8_t blue)
Set the led's color based on the RGB code.
RGBLed API allows to easily interact with a RGB led to set its color for example. ...
Definition: RGBLed.h:48
RGBLed(IN uint8_t redPin, IN uint8_t greenPin, IN uint8_t bluePin)
Constructor for a COMMON CATODE RGBLed.
void end()
Used to stop the device API.
General class that provides the common API behaviour for all the devices/sensors. ...
Definition: Device.h:42
bool begin()
Used to put the device ready to receive requests.