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

◆ runTestPatterns()

void DriverTestRunner::runTestPatterns ( )
inlineprivate

Run visual LED test patterns.

Definition at line 294 of file TestRunner.h.

294 {
295 // Clear first
297 FastLED.show();
298 delay(50);
299
300 // Pattern 1: Rainbow gradient
301 Serial.println(" [INFO] Sending rainbow pattern...");
303 FastLED.show();
304 delay(100);
305
306 // Pattern 2: Solid red
307 Serial.println(" [INFO] Sending solid red...");
309 FastLED.show();
310 delay(100);
311
312 // Pattern 3: Solid green
313 Serial.println(" [INFO] Sending solid green...");
315 FastLED.show();
316 delay(100);
317
318 // Pattern 4: Solid blue
319 Serial.println(" [INFO] Sending solid blue...");
321 FastLED.show();
322 delay(100);
323
324 // Clear for next test
326 FastLED.show();
327 }
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void show(fl::u8 scale)
Update all our controllers with the current led colors, using the passed in brightness.
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.
Definition fill.cpp.hpp:29
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NOEXCEPT
Fill a range of LEDs with a solid color.
Definition fill.cpp.hpp:9
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...
Definition delay.h:98
@ Green
<div style='background:#008000;width:4em;height:4em;'></div>
Definition crgb.h:558
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:622
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
Definition crgb.h:512
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:510
#define Serial
Definition serial.h:304

References fl::CRGB::Black, fl::CRGB::Blue, FastLED, fill_rainbow(), fill_solid(), fl::CRGB::Green, mLeds, mNumLeds, fl::CRGB::Red, and Serial.

Referenced by testSingleDriver().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: