updating loop
updating loop so that first_run doesn't block turning on the neopixels
This commit is contained in:
parent
cbb0b20a44
commit
7697e57136
1 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue