118 {
119
120
123
124 for (int strip = 0; strip < 4; strip++) {
125 CRGB* strip_leds =
nullptr;
126 switch (strip) {
127 case 0: strip_leds =
leds0;
break;
128 case 1: strip_leds =
leds1;
break;
129 case 2: strip_leds =
leds2;
break;
130 case 3: strip_leds =
leds3;
break;
131 }
132
133 if (strip_leds) {
134 uint8_t hue_offset = strip * 64;
136
137
138 uint8_t rotation = (elapsed / 50 + strip * 20) % 256;
140 }
141 }
142
143
145
146
148
149
151 if (
millis() - last_stats > 5000) {
153 Serial.print(
"Frame time: ");
156 Serial.println(
"All 4 strips updating in parallel via automatic grouping");
157 }
158}
CRGB leds2[lengths[RedStrip]]
CRGB leds3[lengths[BlueStrip]]
CRGB leds1[lengths[GreenStrip]]
CRGB leds0[lengths[BlackStrip]]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void rotate(CRGB *array, int length, uint8_t amount)
Helper: Rotate array elements.
void fill_rainbow(CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5) FL_NOEXCEPT
Fill a range of LEDs with a rainbow of colors.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...