Improve data transfer in show()

improve_show
blaz-r 2023-07-03 13:47:50 +02:00
rodzic 8012e3b6a6
commit aef5b0db81
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -326,9 +326,9 @@ class Neopixel:
cut = 8
if self.W_in_mode:
cut = 0
sm_put = self.sm.put
for pixval in self.pixels:
sm_put(pixval, cut)
self.sm.put(self.pixels, cut)
time.sleep(self.delay)
def fill(self, rgb_w, how_bright=None):