FastLED 3.9.15
Loading...
Searching...
No Matches
DriverTest.ino
Go to the documentation of this file.
1// @filter: (platform is esp32)
100
101#include <FastLED.h>
102#include "PlatformConfig.h"
103#include "TestRunner.h"
104
105// ============================================================================
106// LED ARRAY
107// ============================================================================
108
110
111// ============================================================================
112// ARDUINO SETUP
113// ============================================================================
114
115void setup() {
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}
132
133// ============================================================================
134// ARDUINO LOOP
135// ============================================================================
136
137void loop() {
138 // Tests complete - nothing to do in loop
139 // Results were printed in setup()
140 delay(10000);
141}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define DATA_PIN
Definition ClientReal.h:82
void setup()
void loop()
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.
ESP32 Platform Detection and Configuration.
Test Runner for ESP32 Driver Testing.
void runAllTests()
Run all tests: validation + driver tests.
Definition TestRunner.h:74
void printSummary()
Print final test summary with pass/fail status.
Definition TestRunner.h:81
Main test runner that orchestrates all driver tests.
Definition TestRunner.h:61
constexpr EOrder GRB
Definition eorder.h:19
fl::CRGB CRGB
Definition crgb.h:25
#define Serial
Definition serial.h:304