FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 184 of file FestivalStick.ino.

184 {
185 uint32_t now = millis();
187
188 // for (int i = 0; i < NUM_LEDS; i++) {
189 // // Get the 3D position of this LED from the corkscrew map
190 // fl::vec3f pos = mapCorkScrew[i];
191
192 // // Create a wave pattern that moves up the corkscrew
193 // float wave = sin(pos.z * 0.2 - (now / 500.0));
194 // wave = (wave + 1.0) / 2.0; // Normalize to 0-1 range
195
196 // // Create a hue that changes with position and time
197 // uint8_t hue = int32_t((pos.x * 10 + pos.y * 5 + now / 20)) % 256;
198
199 // // Set brightness based on the wave pattern
200 // uint8_t val = 128 + 127 * wave;
201
202 // // Set the color
203 // leds[i] = CHSV(hue, 240, val);
204 // }
205
207 FastLED.show();
208}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
void showGenerative()
void clear(CRGB(&arr)[N])
Definition clear.h:8

References fl::clear(), FastLED, leds, and showGenerative().

+ Here is the call graph for this function: