You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area: coreLED drivers, color math, animationsdeferredTriage pass could not resolve this; skipped by ci/oldest_issue.pystatus: triageNeeds initial assessment
As I'm currently struggling to include the FastLED library into a VSC-based ESP-IDF project, it would be really helpful to have the library accessible within the ESP Component Registry.
I can confirm that I was already able to find the CMakeLists.txt within the FastLED library.
In the meantime: Is there a guide on how to use FastLED with ESP-IDF in VSC? I'm running into various kinds of problems with the EPS32-P4.
Getting FastLED into the component registry is very important. We have a bug filed for this feature.
Help me help you by listing the steps necessary to build FastLED in pure esp-idf. My goal is to list the library in espressifs package management section once we cut off our dependency on the Arduino lib and headers.
2. int_windows.h included (Cross-compilation on Windows)
Problem: When building on Windows for ESP32-P4, _WIN32 s defined by the host compiler. FastLED's int.h checks _WIN32 and includes int_windows.h, which defines types (i32, u32, size, etc.) that conflict with ESP32-specific types from int.h
Suggested fix for int_windows.h:
Path to file: src/platforms/shared/int_windows.h
#pragma once
// Skip if cross-compiling for embedded targets#if defined(ESP32) || defined(ESP_PLATFORM) || defined(ESP8266) || defined(__AVR__) || defined(ARDUINO)
// Empty - types already defined by platform-specific headers#elsenamespacefl {
// ... existing Windows type definitions ...
}
#endif
3. Missing __new/placement_new_delete.h
Problem: promise.h includes "__new/placement_new_delete.h", but this file/folder doesn't exist in the 3.10.3 release. Workaround: Create src/__new/placement_new_delete.h:
#pragma once
#include<new>
4. Rename main.c → main.cpp
FastLED is a C++ library and requires a C++ compiler.
The FastLED build on master is now blazing fast. We did it by switching to a mandatory unity build enforced by the project structure and custom cpp linter, you can see it via all the *.cpp.hpp files, and their aggregate in the _build.cpp.hpp per directory with a _build.cpp for each major component. Instead of hundreds of cpp files, we now have only 6 aggregates. If you have a multiprocessor system these will be done in parallel.
This has sped up all of our compiles. Something like 4-6 seconds now fastled instead of a over minute. So ~90% reduction in build time. Make sure you have LTO and --gc-sections for your build as now there is more pressure on the final program link for code elimination via execution tracing rather than object file level inclusion.
I refactored the print functionality of esp platform for fastled and am now doing jtag printing with a fallback to uart for older platforms. This was the #1 blocker for removing arduino dependency.
Deferred during the bug burn-down pending external Espressif Component Registry namespace approval and publication credentials. Standalone component support exists, but registry metadata, authenticated release publication, and a live installability check cannot be completed until that prerequisite changes.
area: coreLED drivers, color math, animationsdeferredTriage pass could not resolve this; skipped by ci/oldest_issue.pystatus: triageNeeds initial assessment
Activity
zackees commentedon Oct 30, 2025
Current State
✅ Already Implemented
CMakeLists.txt – includes a valid idf_component_register() call.
License: MIT (SPDX identifier present).
Documentation: README.md and library metadata in library.json.
Examples: Organized and self-contained.
Legacy ESP-IDF Support: component.mk file for old make-based builds.
❌ Missing or Required for Registry
idf_component.yml — required manifest file.
Namespace request via components.espressif.com
.
Registry authentication (GitHub + API token or OIDC).
BrinkmannJan commentedon Jan 9, 2026
As I'm currently struggling to include the FastLED library into a VSC-based ESP-IDF project, it would be really helpful to have the library accessible within the ESP Component Registry.
I can confirm that I was already able to find the CMakeLists.txt within the FastLED library.
In the meantime: Is there a guide on how to use FastLED with ESP-IDF in VSC? I'm running into various kinds of problems with the EPS32-P4.
zackees commentedon Jan 14, 2026
Getting FastLED into the component registry is very important. We have a bug filed for this feature.
Help me help you by listing the steps necessary to build FastLED in pure esp-idf. My goal is to list the library in espressifs package management section once we cut off our dependency on the Arduino lib and headers.
BrinkmannJan commentedon Jan 16, 2026
In the meantime, I got it running with the use of copilot agent.
I also compiled a report on what it has done. I hope this helps:
Summary: Getting FastLED to work with ESP-IDF (ESP32-P4)
1. Define dependencies in idf_component.yml
2. int_windows.h included (Cross-compilation on Windows)
Problem: When building on Windows for ESP32-P4, _WIN32 s defined by the host compiler. FastLED's int.h checks _WIN32 and includes int_windows.h, which defines types (i32, u32, size, etc.) that conflict with ESP32-specific types from int.h
Suggested fix for int_windows.h:
Path to file: src/platforms/shared/int_windows.h
3. Missing __new/placement_new_delete.h
Problem: promise.h includes "__new/placement_new_delete.h", but this file/folder doesn't exist in the 3.10.3 release.
Workaround: Create src/__new/placement_new_delete.h:
4. Rename main.c → main.cpp
FastLED is a C++ library and requires a C++ compiler.
Changes in CMakeLists.txt:
5. Fix FastLED CMakeLists.txt
Problem:
file(GLOB "src/**/*.cpp")doesn't find all source files recursively (only 62 of 290).Solution in CMakeLists.txt:
6. FreeRTOS Tick Rate
In sdkconfig or sdkconfig.defaults:
My issue with this
zackees commentedon Jan 17, 2026
PRs welcome for getting us off off arduino headers. Help us help you.
zackees commentedon Feb 3, 2026
The FastLED build on master is now blazing fast. We did it by switching to a mandatory unity build enforced by the project structure and custom cpp linter, you can see it via all the *.cpp.hpp files, and their aggregate in the _build.cpp.hpp per directory with a _build.cpp for each major component. Instead of hundreds of cpp files, we now have only 6 aggregates. If you have a multiprocessor system these will be done in parallel.
This has sped up all of our compiles. Something like 4-6 seconds now fastled instead of a over minute. So ~90% reduction in build time. Make sure you have LTO and --gc-sections for your build as now there is more pressure on the final program link for code elimination via execution tracing rather than object file level inclusion.
zackees commentedon Feb 6, 2026
I refactored the print functionality of esp platform for fastled and am now doing jtag printing with a fallback to uart for older platforms. This was the #1 blocker for removing arduino dependency.
4wheeljive commentedon Apr 8, 2026
@BrinkmannJan I don't know if you're still wrestling with the P4, but I spent the past week pounding away and finally got a working setup (including hosted C6 wireless) in ESP-IDF that I ported to a pioarduino/Platformio project:
https://www.reddit.com/r/FastLED/comments/1sfyyr1/working_esp32p4_with_integratedhosted_esp32c6/
feat(ci): add ESP-IDF component-build smoke test (esp32dev_idf5_compo…
zackees commentedon Aug 20, 2026
Deferred during the bug burn-down pending external Espressif Component Registry namespace approval and publication credentials. Standalone component support exists, but registry metadata, authenticated release publication, and a live installability check cannot be completed until that prerequisite changes.