Not sure where to put CRGB. I tried both in setup and in declaration.

Not sure where to put CRGB. I tried both in setup and in declaration.

Getting

error ‘CRGBset’ does not name a type.

or

error ‘CRGBset’ was not declared in this scope

//code

#include “FastLED.h”

#define BRIGHTNESS 70 // max to 256
const int NUM_LEDS = 276;

CRGBArray<NUM_LEDS> leds;

CRGBset strB(leds(1,10)); //set custom ranges
CRGBset strM(leds(11,20));
CRGBset strE(leds(21,30));

void setup() {
Serial.begin(9600);
FastLED.setBrightness(BRIGHTNESS);
FastLED.addLeds<NEOPIXEL, 39>(leds, NUM_LEDS); //pin39 Start
fill_solid(leds, NUM_LEDS, CRGB::Black);

//CRGBset strB(leds(1,10)); //set custom ranges
//CRGBset strM(leds(11,20));
//CRGBset strE(leds(21,30));

}

void loop() {
strB.CRGB(255,0,0);
strM.CRGB(0,255,0);
strE.CRGB(0,0,255);

FastLED.show();
} //end loop

Here’s a simple example:

Also note that CRGBSet has “Set” capitalized.

thank you
. CRGBArray is so much more cleaner for what I am doing.

Thanks again. Great stuff.