From 161401b22f1dee81b808aa48a3df5ed96edc4f44 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 17 Feb 2017 10:09:33 +0100 Subject: [PATCH] Add a CRGB macro The `CRGB` macro takes rgb values as arguments, in this order, and creates a `cRGB` instance with the components rearranged to fit the ordering of the hardware (in the case of the Model01, bgr). Signed-off-by: Gergely Nagy --- src/Kaleidoscope-Hardware-Model01.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Kaleidoscope-Hardware-Model01.h b/src/Kaleidoscope-Hardware-Model01.h index d131a024..c92bbf8e 100644 --- a/src/Kaleidoscope-Hardware-Model01.h +++ b/src/Kaleidoscope-Hardware-Model01.h @@ -8,6 +8,8 @@ #define COLS 16 #define ROWS 4 +#define CRGB(r,g,b) (cRGB){b, g, r} + class Model01 { public: Model01(void);