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 cut = 8
if self.W_in_mode: if self.W_in_mode:
cut = 0 cut = 0
sm_put = self.sm.put
for pixval in self.pixels: self.sm.put(self.pixels, cut)
sm_put(pixval, cut)
time.sleep(self.delay) time.sleep(self.delay)
def fill(self, rgb_w, how_bright=None): def fill(self, rgb_w, how_bright=None):