adafruit / Adafruit_CircuitPython_NeoPixel

CircuitPython drivers for neopixels.
MIT License
308 stars 99 forks source link

Neopixel updates are slow #27

Closed rhooper closed 4 years ago

rhooper commented 6 years ago

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 https://github.com/adafruit/circuitpython/issues/884

rhooper commented 6 years ago

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

gwertzman commented 5 years ago

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 commented 4 years ago

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