FastLED 3.9.15
Loading...
Searching...
No Matches
PlatformConfig.h File Reference

Detailed Description

ESP32 Platform Detection and Configuration.

This header provides:

  • Automatic platform detection for all ESP32 variants
  • Expected driver lists for each platform
  • Configuration constants (LED count, pins, etc.)

Supported Platforms: ┌─────────────┬─────────────────────────────────────────────┐ │ Platform │ Available Drivers │ ├─────────────┼─────────────────────────────────────────────┤ │ ESP32 │ SPI, RMT, UART │ │ ESP32-S3 │ SPI, RMT, I2S, UART │ │ ESP32-C3 │ SPI, RMT, UART │ │ ESP32-C6 │ PARLIO, RMT, UART │ │ ESP32-C5 │ PARLIO, RMT, UART │ │ ESP32-H2 │ PARLIO, RMT, UART │ │ ESP32-P4 │ LCD_RGB, PARLIO, RMT, UART │ └─────────────┴─────────────────────────────────────────────┘

Definition in file PlatformConfig.h.

#include <FastLED.h>
+ Include dependency graph for PlatformConfig.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DATA_PIN   2
 Data pin connected to LED strip Common pins by board:
 
#define NUM_LEDS   60
 Number of LEDs in your strip.
 
#define TEST_BRIGHTNESS   64
 Brightness level (0-255), 64 = 25% for safe testing.
 

Functions

void getExpectedDrivers (fl::vector< const char * > &expected)
 Populate a vector with the expected drivers for this platform.
 
const char * getPlatformName ()
 Get a human-readable name for the current platform.