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-12-09 22:13:10 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2015-12-09 22:13:10 +0300
commit7e152ff3f5ff8f4c3d97f8f9cff90e38e2d86ff8 (patch)
tree0805367d3caaa9e67e19c70110226b37cf928f3f /examples
parentebfccf2415397a68f786f32ebc6505f84297dbc1 (diff)
Add CRGBArray for defining the leds - preferred method to the normal array, now.
Diffstat (limited to 'examples')
-rw-r--r--examples/RGBSetDemo/RGBSetDemo.ino4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/RGBSetDemo/RGBSetDemo.ino b/examples/RGBSetDemo/RGBSetDemo.ino
index 9909f737..3b9ef24e 100644
--- a/examples/RGBSetDemo/RGBSetDemo.ino
+++ b/examples/RGBSetDemo/RGBSetDemo.ino
@@ -1,7 +1,7 @@
#include<FastLED.h>
#define NUM_LEDS 40
-CRGB rawleds[NUM_LEDS];
-CRGBSet leds(rawleds, NUM_LEDS);
+
+CRGBArray<NUM_LEDS> leds;
void setup() { FastLED.addLeds<NEOPIXEL,6>(leds, NUM_LEDS); }