|
FastLED 3.9.15
|
ESP32 Generic Driver Test - Tests all available LED channel drivers.
This example demonstrates how to:
The test runs automatically on startup and prints results to Serial.
FastLED's ESP32 implementation provides multiple LED driver backends:
┌─────────────────────────────────────────────────────────────────────┐ │ Driver │ Description │ Typical Use Case │ ├──────────┼─────────────────────────────────┼────────────────────────┤ │ RMT │ Remote Control peripheral │ General purpose │ │ SPI │ Serial Peripheral Interface │ High-speed strips │ │ I2S │ Inter-IC Sound (LCD CAM mode) │ ESP32-S3 parallel │ │ PARLIO │ Parallel I/O (RMT5 successor) │ ESP32-C6/H2/P4 │ │ UART │ Universal Async Transmitter │ Fallback option │ │ LCD_RGB │ LCD RGB interface │ ESP32-P4 only │ └──────────┴─────────────────────────────────┴────────────────────────┘
Each platform has different drivers available based on hardware support. This test automatically detects the platform and validates the expected drivers are present.
ESP32 Board LED Strip ┌─────────┐ ┌─────────┐ │ │ │ │ │ GPIO 2 ├─────────┤ Data In │ │ │ │ │ │ GND ├─────────┤ GND │ │ │ │ │ │ 5V ├─────────┤ VCC │ │ │ │ │ └─────────┘ └─────────┘
Note: Adjust DATA_PIN in PlatformConfig.h if using a different pin.
+================================================================+ | ESP32 Generic Driver Test | | Tests all available LED channel drivers via Channel API | +================================================================+
Platform: ESP32-S3 Data Pin: 2 LED Count: 60
+================================================================+ | DRIVER VALIDATION FOR ESP32-S3 | +================================================================+
Expected drivers (4):
Available drivers (4):
Validation results: [PASS] SPI driver found [PASS] RMT driver found [PASS] I2S driver found [PASS] UART driver found
TEST_SUITE_COMPLETE: PASS
DriverTest.ino - Main sketch (this file) PlatformConfig.h - Platform detection, pin/LED configuration TestRunner.h - Test framework and driver testing logic
Definition in file DriverTest.ino.
Include dependency graph for DriverTest.ino:Go to the source code of this file.
Functions | |
| void | loop () |
| void | setup () |
Variables | |
| CRGB | leds [NUM_LEDS] |