-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[ESP32] Neopixels not working correctly #4396
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
Comments
My preference is to, in the short-term, change the default timing to work with 800KHz Neopixels. I understand that this would be a breaking change but, if we are careful about announcing it on forums ahead of time, it should be manageable. I think we should also change I think that the longer-term solution is to use the RMT module for the Neopixel implementation. At this point we could more easily produce a general solution by specifying the timing intervals. (See the original issue above for more detail) If that sounds reasonable I can get to work on the short-term implementation. |
Ok, yes, let's try to get this fixed.
+1
I don't think there's much choice but to make it a breaking change. It really should be the same as esp8266, and so it's really a bug that the default is 400kHz.
Yes, if someone has the time to implement it :) In that case I don't think it's worth introducing enumerations for the
Yes, please go ahead! Note that the ports/esp32/modules/apa106.py should still work as before, so would need an |
There is an advanced implementation in LoBo‘s fork, it uses RMT. Sadly it hasn‘t made it back |
This issue duplicates the Neopixels not working correctly ticket from the old ESP32 repository.
If that was TL/DR, ;) the summary is that the Neopixel implementation for the ESP32 doesn't work, by default, with most 800KHz Neopixels. The timing is such that it works well with the less common 400KHz devices. Passing
timing=True
when initializing the Neopixel object configures it to work with the typical 800KHz devices and resolves the issue.A few solutions were discussed but, as this is a common stumbling block for beginners, this should be prioritised to work for the common Neopixels by default.
The text was updated successfully, but these errors were encountered: