updating loop

updating loop so that first_run doesn't block turning on the neopixels
This commit is contained in:
Liz 2023-04-16 10:37:52 -04:00
parent cbb0b20a44
commit 7697e57136

View file

@ -120,10 +120,9 @@ while True:
color = (0, 0, 0)
if first_run:
first_run = False
else:
pixels.fill(color)
pixels.show()
# reset clock
clock = ticks_add(clock, time_check)
pixels.fill(color)
pixels.show()
# reset clock
clock = ticks_add(clock, time_check)
except Exception as e:
reset_on_error(10, e)