9#define NUM_LEDS_PER_STRIP 64
12CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];
23 static uint8_t hue = 0;
24 for(
int i = 0; i < NUM_STRIPS; i++) {
25 for(
int j = 0; j < NUM_LEDS_PER_STRIP; j++) {
26 leds[(i*NUM_LEDS_PER_STRIP) + j] =
CHSV((32*i) + hue+j,192,255);
31 for(
int i = 0; i < NUM_STRIPS; i++) {
32 for(
int j = 0; j <= i; j++) {
33 leds[(i*NUM_LEDS_PER_STRIP) + j] =
CRGB::Red;
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void delay(unsigned long ms)
Delay for the given number of milliseconds.
void setBrightness(uint8_t scale)
Set the global brightness scaling.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Representation of an RGB pixel (Red, Green, Blue)