clean up
This commit is contained in:
parent
1af1681ece
commit
9d17d89cae
1 changed files with 1 additions and 3 deletions
|
|
@ -119,8 +119,8 @@ while True:
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
pass
|
pass
|
||||||
if mode == 1 and not vibration_switch.value:
|
if mode == 1 and not vibration_switch.value:
|
||||||
pixels.brightness = 1
|
|
||||||
print("Sparkle mode activate!")
|
print("Sparkle mode activate!")
|
||||||
|
pixels.brightness = 1
|
||||||
sparkle_color_index = (sparkle_color_index + 1) % len(sparkle_color_list)
|
sparkle_color_index = (sparkle_color_index + 1) % len(sparkle_color_list)
|
||||||
sparkle_code(sparkle_color_list[sparkle_color_index])
|
sparkle_code(sparkle_color_list[sparkle_color_index])
|
||||||
if mode == 2 and not vibration_switch.value:
|
if mode == 2 and not vibration_switch.value:
|
||||||
|
|
@ -140,7 +140,5 @@ while True:
|
||||||
pixels.fill((0, 0, 0))
|
pixels.fill((0, 0, 0))
|
||||||
chase_last_color = now
|
chase_last_color = now
|
||||||
chase_next_color = chase_last_color + chase_color_duration
|
chase_next_color = chase_last_color + chase_color_duration
|
||||||
else:
|
|
||||||
led.value = False
|
|
||||||
except MemoryError:
|
except MemoryError:
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue