Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ws2812.write only emits the reset signal on ESP32-C3 but not the data #3508

Open
docbacardi opened this issue Feb 23, 2022 · 0 comments
Open

Comments

@docbacardi
Copy link

Expected behavior

The ws2812.write function should emit the reset signal and the data.

Actual behavior

On the ESP32-C3 only the reset signal is generated. The data is not generated.

I could narrow down the problem to the function ws2812_fill_memory_encoded which writes new items to the RMT memory, but nothing appears on the outside. To be honest I have no idea what is going wrong, but I have a workaround. The new SDK offers a translator callback to generate new RMT items on the fly from input data. I have a patch for this.

Test code

This should burn a hole in your retina using the onboard RGB LED of the ESP32-C3-DevKitM-1:

ws2812.write({pin = 8, data = string.char(255,0,0)})

NodeMCU startup banner

NodeMCU ESP32 build unspecified powered by Lua 5.1.4 [5.1-doublefp] on IDF v4.4-beta1-284-ge5892a7286

Hardware

ESP32-C3

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

No branches or pull requests

1 participant