Skip to content

ESP32-S3 APA102: FastLED SPI output depends on addLeds registration order #4864

Description

@argorain

Board / MCU

ESP32-S3

LED Chipset

APA102 / DotStar

FastLED Version

ce3eb2e

Arduino / PlatformIO version

ESP-IDF v6.1

Operating System

Linux

Description

On ESP32-S3, driving two APA102 strips with FastLED and explicit SPI host mapping is order-sensitive.

With identical hardware and pin mapping:

  • Register strip A then B: only A works.
  • Register strip B then A: only B works.

A raw dual-SPI ESP-IDF implementation on the same hardware works simultaneously so hardware is proven.

Environment

  • Board: M5Stack S3A (ESP32-S3)
  • ESP-IDF target: esp32s3
  • ESP-IDF FreeRTOS tick: 1000 Hz

Pin mapping

  • Strip A: DATA=GPIO1, CLK=GPIO3, host=HOST2
  • Strip B: DATA=GPIO5, CLK=GPIO7, host=HOST3

Steps to reproduce

fastled_spi_order_repro.cpp

FASTLED_TEST_ADD_ORDER_B_FIRST = 0 --> Strip A works, B is black
FASTLED_TEST_ADD_ORDER_B_FIRST = 1 --> Strip B works, A is black

Minimal sketch

See above.

Serial / debug output

Checklist

  • I have searched existing issues for duplicates
  • I have tested with the latest FastLED release or git master
  • I can reproduce this with a minimal sketch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions