#ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H #include "sdkconfig.h" // ============================================================================ // ESP32-C5 (DevKitC-1) // ============================================================================ #ifdef CONFIG_IDF_TARGET_ESP32C5 #define RGB_LED_GPIO 8 // Common addressable LED pin for C5 #define HAS_RGB_LED 1 #endif // ============================================================================ // ESP32-S3 (DevKitC-1) // ============================================================================ #ifdef CONFIG_IDF_TARGET_ESP32S3 // Most S3 DevKits use GPIO 48 for the addressable RGB LED. // If yours uses GPIO 38, change this value. #define RGB_LED_GPIO 48 #define HAS_RGB_LED 1 #endif // ============================================================================ // ESP32 (Original / Standard) // ============================================================================ #ifdef CONFIG_IDF_TARGET_ESP32 // Standard ESP32 DevKits usually have a single blue LED on GPIO 2. // They rarely have an addressable RGB LED built-in. #define RGB_LED_GPIO 2 #define HAS_RGB_LED 0 #endif // ============================================================================ // Fallbacks (Prevent Compilation Errors) // ============================================================================ #ifndef RGB_LED_GPIO #define RGB_LED_GPIO 2 #endif #ifndef HAS_RGB_LED #define HAS_RGB_LED 0 #endif #endif // BOARD_CONFIG_H