Skip to content

Commit a22be3a

Browse files
authored
Update esp_atcontrol_countviewer.py
bad loop fixed
1 parent bc8f502 commit a22be3a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/esp_atcontrol_countviewer.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,9 @@ def chime_light():
147147
pass
148148
if NEOPIXELS_ON_CHANGE:
149149
for i in range(100, 0, -10):
150-
for i in range(0, 100, 10):
151-
if pixel_type == "RGB/GRB":
152-
pixels.fill((i, i, i))
153-
elif pixel_type == "RGBW/GRBW":
150+
if pixel_type == "RGB/GRB":
151+
pixels.fill((i, i, i))
152+
elif pixel_type == "RGBW/GRBW":
154153
pixels.fill((i, i, i, i))
155154
pixels.show()
156155
time.sleep(1)

0 commit comments

Comments
 (0)