Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
Blaž Rolih f4396614c6
Merge pull request #5 from Mathemmagician/feature/clear
Adding clear function and removing delay from fill
2022-03-06 23:16:38 +01:00
Mathemmagician 9754b84d20 Adding clear function and removing delay from fill 2022-03-06 16:48:23 -05:00
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -197,4 +197,7 @@ class Neopixel:
def fill(self, rgb_w, how_bright = None):
for i in range(self.num_leds):
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)])