Description
NeoPixelBus fails to compile on ESP-IDF 6.0 because driver/rmt.h (the legacy RMT driver) has been removed.
NeoEsp32RmtMethod.h:49:10: fatal error: driver/rmt.h: No such file or directory
49 | #include <driver/rmt.h>
Background
In ESP-IDF 6.0, the legacy RMT driver (driver/rmt.h) was removed entirely. The replacement is the new RMT driver introduced in IDF 5.0:
driver/rmt_tx.h — transmit channel
driver/rmt_encoder.h — encoding
driver/rmt_types.h — common types
The ESP-IDF RMT migration guide describes the API changes.
Affected file
src/internal/methods/NeoEsp32RmtMethod.h / .cpp
Environment
- ESP-IDF 6.0.0-rc1
- NeoPixelBus 2.7.3 and 2.8.4
- ESP32 targets
Description
NeoPixelBus fails to compile on ESP-IDF 6.0 because
driver/rmt.h(the legacy RMT driver) has been removed.Background
In ESP-IDF 6.0, the legacy RMT driver (
driver/rmt.h) was removed entirely. The replacement is the new RMT driver introduced in IDF 5.0:driver/rmt_tx.h— transmit channeldriver/rmt_encoder.h— encodingdriver/rmt_types.h— common typesThe ESP-IDF RMT migration guide describes the API changes.
Affected file
src/internal/methods/NeoEsp32RmtMethod.h/.cppEnvironment