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

◆ getExpectedDrivers()

void getExpectedDrivers ( fl::vector< const char * > & expected)
inline

Populate a vector with the expected drivers for this platform.

Parameters
expectedVector to populate with driver names

Each ESP32 variant has different peripheral support:

  • PARLIO: Parallel I/O (ESP32-C6, C5, H2, P4 only)
  • RMT: Remote Control peripheral (all ESP32 variants)
  • SPI: Serial Peripheral Interface (most variants except C6)
  • I2S: Inter-IC Sound peripheral (ESP32-S3 only)
  • UART: Universal Async Receiver/Transmitter (all variants)
  • LCD_RGB: LCD RGB interface (ESP32-P4 only)

Definition at line 84 of file PlatformConfig.h.

84 {
85#if defined(FL_IS_ESP_32C6)
86 // ESP32-C6: PARLIO (priority 4), RMT (priority 1), UART (priority 0)
87 // Note: SPI disabled on C6 - only 1 SPI host available, RMT5 preferred
88 expected.push_back("PARLIO");
89 expected.push_back("RMT");
90 expected.push_back("UART");
91
92#elif defined(FL_IS_ESP_32S3)
93 // ESP32-S3: SPI (priority 2), RMT (priority 1), I2S (priority -1), UART (priority 0)
94 expected.push_back("SPI");
95 expected.push_back("RMT");
96 expected.push_back("I2S");
97 expected.push_back("UART");
98
99#elif defined(FL_IS_ESP_32C3)
100 // ESP32-C3: SPI (priority 2), RMT (priority 1), UART (priority 0)
101 expected.push_back("SPI");
102 expected.push_back("RMT");
103 expected.push_back("UART");
104
105#elif defined(FL_IS_ESP_32C5)
106 // ESP32-C5: PARLIO (priority 4), RMT (priority 1), UART (priority 0)
107 expected.push_back("PARLIO");
108 expected.push_back("RMT");
109 expected.push_back("UART");
110
111#elif defined(FL_IS_ESP_32H2)
112 // ESP32-H2: PARLIO (priority 4), RMT (priority 1), UART (priority 0)
113 expected.push_back("PARLIO");
114 expected.push_back("RMT");
115 expected.push_back("UART");
116
117#elif defined(FL_IS_ESP_32P4)
118 // ESP32-P4: LCD_RGB (priority 3), PARLIO (priority 4), RMT (priority 1), UART (priority 0)
119 expected.push_back("LCD_RGB");
120 expected.push_back("PARLIO");
121 expected.push_back("RMT");
122 expected.push_back("UART");
123
124#elif defined(FL_IS_ESP_32DEV)
125 // ESP32 (classic): SPI (priority 2), RMT (priority 1), UART (priority 0)
126 expected.push_back("SPI");
127 expected.push_back("RMT");
128 expected.push_back("UART");
129
130#else
131 // Unknown platform - no expectations set
132 (void)expected; // Suppress unused parameter warning
133#endif
134}
void push_back(const T &value) FL_NOEXCEPT
Definition vector.h:624

References fl::vector< T >::push_back().

Referenced by DriverTestRunner::validateExpectedDrivers().

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