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

◆ setup()

void setup ( )

Definition at line 115 of file DriverTest.ino.

115 {
116 // Initialize serial communication
117 Serial.begin(115200);
118 delay(1000); // Allow time for serial monitor connection
119
120 Serial.println("SpecialDrivers/ESP/DriverTest setup starting");
121
122 // Initialize FastLED with WS2812 strip
123 // The driver can be switched at runtime using setExclusiveDriver()
124 FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);
125 FastLED.setBrightness(TEST_BRIGHTNESS);
126
127 // Create and run the test suite
129 runner.runAllTests();
130 runner.printSummary();
131}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define TEST_BRIGHTNESS
Brightness level (0-255), 64 = 25% for safe testing.
Main test runner that orchestrates all driver tests.
Definition TestRunner.h:61
constexpr EOrder GRB
Definition eorder.h:19
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
#define Serial
Definition serial.h:304

References DATA_PIN, FastLED, GRB, leds, NUM_LEDS, DriverTestRunner::printSummary(), DriverTestRunner::runAllTests(), Serial, and TEST_BRIGHTNESS.

+ Here is the call graph for this function: