Skip to content

Fix WS2816 on ObjectFLED and ESP32S3 - #1861

Merged
zackees merged 3 commits into
FastLED:masterfrom
kbob:ws2816-feature
Jan 23, 2025
Merged

zackees merged 3 commits into
FastLED:masterfrom
kbob:ws2816-feature

Conversation

@kbob

@kbob kbob commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

These changes make WS2816 work with the Teensy4's ObjectFLED controller and ESP32S3's IDF5 RMT controller. They also fix CFastLED::showColor.

FWIW, my ESP32 board is a Seeed XAIO ESP32S3. That seems to be the default in platformio.ini, so I'm not the only one using it. The examples all use pin 3, and when I run them, the LED signals appears on the pin labeled A2. The parallel examples use pins 1 and 3, and those come out on A0 and A2. This seems to be consistent with Arduino's pin assignments, but it contradicts the silkscreen and Seeed's own documentation. It's also consistent across FastLED/PlatformIO and FastLED/Arduino, and not dependent on using WS2816, so I think it's right. It's just disconcerting.

kbob added 3 commits January 23, 2025 10:03
ObjectFLED was failing because beginShowLeds/endShowLeds were
being called on disabled controllers.  This code puts guards
(controller.getEnabled()) around those calls.  It also reorders
the calls to all controllers' beginShowLeds -> all controllers'
showPixels -> all controllers' endShowLeds, so that ObjectFLED
can write all pins simultaneously.
@zackees
zackees merged commit 8379784 into FastLED:master Jan 23, 2025
@zackees

zackees commented Jan 23, 2025 •

Copy link
Copy Markdown
Member

lol you are so awesome. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants