linting examples

pull/227/head
helgibbons 2021-12-05 19:57:38 +00:00
rodzic 1c1cf528f9
commit 2aace8cac9
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -36,10 +36,10 @@ while True:
else:
led_strip.set_hsv(i, HUE_2 / 360, 1.0, BRIGHTNESS)
time.sleep(SPEED)
for i in range(NUM_LEDS):
if (i % 2) == 0:
led_strip.set_hsv(i, HUE_2 / 360, 1.0, BRIGHTNESS)
else:
led_strip.set_hsv(i, HUE_1 / 360, 1.0, BRIGHTNESS)
time.sleep(SPEED)
time.sleep(SPEED)

Wyświetl plik

@ -39,4 +39,4 @@ while True:
# ...and then update one random pixel at a time to keep things fresh and sparkly.
# Comment out the lines below if you want static lights.
led_strip.set_hsv(randrange(0, NUM_LEDS), randrange(HUE_START, HUE_END) / 360, 1.0, uniform(BRIGHTNESS_MIN, BRIGHTNESS_MAX))
time.sleep(SPEED)
time.sleep(SPEED)