Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2015-08-11 09:04:18 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2015-08-11 09:04:18 +0300
commit4b16b876fb9f6a07b8be31ede24488c6343608ce (patch)
treeb99c584549042e5b2603be26028881d96b2583f9 /pixeltypes.h
parent322b9dee36c0281628ad49ee7bf2ca8da4f7b0ff (diff)
documentation updates
Diffstat (limited to 'pixeltypes.h')
-rw-r--r--pixeltypes.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/pixeltypes.h b/pixeltypes.h
index 14a35e00..3f800521 100644
--- a/pixeltypes.h
+++ b/pixeltypes.h
@@ -10,11 +10,14 @@ FASTLED_NAMESPACE_BEGIN
struct CRGB;
struct CHSV;
-// Forward declaration of hsv2rgb_rainbow here,
-// to avoid circular dependencies.
-extern void hsv2rgb_rainbow( const CHSV& hsv, CRGB& rgb);
+///@defgroup Pixeltypes CHSV and CRGB type definitions
+///@{
+/// Forward declaration of hsv2rgb_rainbow here,
+/// to avoid circular dependencies.
+extern void hsv2rgb_rainbow( const CHSV& hsv, CRGB& rgb);
+/// Representation of an HSV pixel (hue, saturation, value (aka brightness)).
struct CHSV {
union {
struct {
@@ -69,6 +72,7 @@ struct CHSV {
}
};
+/// Pre-defined hue values for HSV objects
typedef enum {
HUE_RED = 0,
HUE_ORANGE = 32,
@@ -80,6 +84,7 @@ typedef enum {
HUE_PINK = 224
} HSVHue;
+/// Representation of an RGB pixel (Red, Green, Blue)
struct CRGB {
union {
struct {
@@ -540,7 +545,7 @@ struct CRGB {
}
}
-
+ /// Predefined RGB colors
typedef enum {
AliceBlue=0xF0F8FF,
Amethyst=0x9966CC,
@@ -803,7 +808,9 @@ inline CRGB operator%( const CRGB& p1, uint8_t d)
-// Define RGB orderings
+/// RGB orderings, used when instantiating controllers to determine what
+/// order the controller should send RGB data out in, RGB being the default
+/// ordering.
enum EOrder {
RGB=0012,
RBG=0021,
@@ -814,5 +821,6 @@ enum EOrder {
};
FASTLED_NAMESPACE_END
+///@}
#endif