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 <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent 5bdd12e533
commit 161401b22f

@ -8,6 +8,8 @@
#define COLS 16
#define ROWS 4
#define CRGB(r,g,b) (cRGB){b, g, r}
class Model01 {
public:
Model01(void);

Loading…
Cancel
Save