Skip to content

Commit 4ac5956

Browse files
authored
Merge pull request #3175 from adafruit/TheKitty-patch-1
Fix LED array initialization in setup function
2 parents a959af2 + d1f62b5 commit 4ac5956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Gemma/GemmaM0_Band_Jacket/DiscoBandCamp/DiscoBandCamp.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ const byte numEffects = (sizeof(effectList)/sizeof(effectList[0]));
6868
void setup() {
6969

7070
//Add the onboard Strip on the Right and Left to create a single array
71-
FastLED.addLeds<CHIPSET, LEFT_PIN, COLOR_ORDER>(leds, 0, NUM_LEFT);
72-
FastLED.addLeds<CHIPSET, RIGHT_PIN, COLOR_ORDER>(leds, NUM_LEFT, NUM_RIGHT);
71+
FastLED.addLeds<CHIPSET, LEFT_PIN, COLOR_ORDER>(leds, 0, NUM_LEFT); // See https://github.com/fastled/fastled/wiki/basic-usage
72+
FastLED.addLeds<CHIPSET, RIGHT_PIN, COLOR_ORDER>(leds, 0, NUM_RIGHT);
7373

7474
// set global brightness value
7575
FastLED.setBrightness( scale8(currentBrightness, MAXBRIGHTNESS) );

0 commit comments

Comments
 (0)