Closed rhooper closed 4 years ago
I have done some experimental work on this, see adafruit/circuitpython#884
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.
This is now resolved with _pixelbuf in 5.0 beta and the latest neopixel.py that supports it.
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