Skip to content

Neopixel updates are slow #27

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

Closed
rhooper opened this issue May 29, 2018 · 3 comments
Closed

Neopixel updates are slow #27

rhooper opened this issue May 29, 2018 · 3 comments

Comments

@rhooper
Copy link
Contributor

rhooper commented May 29, 2018

The neopixel library could benefit from a CircuitPython helper to offload computationally expensive setitem work to. The use of brightness<1 is also slow.
See adafruit/circuitpython#884

@rhooper
Copy link
Contributor Author

rhooper commented May 29, 2018

I have done some experimental work on this, see adafruit/circuitpython#884

@gwertzman
Copy link

Yeah I noticed the same issue -- multiplying the brightness value through every value in the array on "show" is inefficient; much better to do the brightness calculation once when you set the value I think.

@rhooper
Copy link
Contributor Author

rhooper commented Jan 14, 2020

This is now resolved with _pixelbuf in 5.0 beta and the latest neopixel.py that supports it.

@rhooper rhooper closed this as completed Jan 14, 2020
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

2 participants