diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2015-12-09 22:13:10 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2015-12-09 22:13:10 +0300 |
commit | 7e152ff3f5ff8f4c3d97f8f9cff90e38e2d86ff8 (patch) | |
tree | 0805367d3caaa9e67e19c70110226b37cf928f3f /examples | |
parent | ebfccf2415397a68f786f32ebc6505f84297dbc1 (diff) |
Add CRGBArray for defining the leds - preferred method to the normal array, now.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/RGBSetDemo/RGBSetDemo.ino | 4 |
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); } |