0

I was wondering if there is a way to set the whole WS2812B Led strip on one color at once with the library from Jgarff?

I know i could use this code:

    while True:
        for i in range(strip.numPixels()):
            strip.setPixelColor(i, (0, 255, 0))
            strip.show()

But i have 864 Led's so it takes the Raspberry Pi 30 seconds to set all the Leds on the given color.

So I searched for a command like strip.fill or something like that and i didnt find anything. So is there a command or a fix for the for loop?

I'm thankfull for any input.

example1

        for i in range(0, strip.numPixels()):
        strip.setPixelColor(i, (0, 255, 0))
        strip.show()

0 Answers0