kopia lustrzana https://github.com/blaz-r/pi_pico_neopixel
Porównaj commity
2 Commity
cfc38951dc
...
f4396614c6
Autor | SHA1 | Data |
---|---|---|
Blaž Rolih | f4396614c6 | |
Mathemmagician | 9754b84d20 |
|
@ -197,4 +197,7 @@ class Neopixel:
|
||||||
def fill(self, rgb_w, how_bright = None):
|
def fill(self, rgb_w, how_bright = None):
|
||||||
for i in range(self.num_leds):
|
for i in range(self.num_leds):
|
||||||
self.set_pixel(i, rgb_w, how_bright)
|
self.set_pixel(i, rgb_w, how_bright)
|
||||||
time.sleep(self.delay)
|
|
||||||
|
# Clear the strip
|
||||||
|
def clear(self):
|
||||||
|
self.pixels = array.array("I", [0 for _ in range(self.num_leds)])
|
||||||
|
|
Ładowanie…
Reference in New Issue