Skip to content

ESP-IDF 6.0 compatibility: legacy RMT driver removed #917

@swoboda1337

Description

@swoboda1337

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions