7#define NUM_LEDS_PER_STRIP 16
11CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];
30 Serial.println(
"Starting...");
34 FastLED.
addLeds<WS2811_PORTDC,NUM_STRIPS>(leds, NUM_LEDS_PER_STRIP);
41 Serial.println(
"Loop....");
42 static uint8_t hue = 0;
43 for(
int i = 0; i < NUM_STRIPS; i++) {
44 for(
int j = 0; j < NUM_LEDS_PER_STRIP; j++) {
45 leds[(i*NUM_LEDS_PER_STRIP) + j] =
CHSV((32*i) + hue+j,192,255);
50 for(
int i = 0; i < NUM_STRIPS; i++) {
51 for(
int j = 0; j <= i; j++) {
52 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 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)