kopia lustrzana https://github.com/blaz-r/pi_pico_neopixel
Merge branch 'main' into Add-length,-getter-and-array-replacement-for-better-list/array-like-support
commit
8f158e6390
|
@ -337,9 +337,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):
|
||||||
|
|
Ładowanie…
Reference in New Issue