disable neopixel for now
This commit is contained in:
parent
48fd906e49
commit
e6daa24561
1 changed files with 8 additions and 8 deletions
|
|
@ -117,19 +117,19 @@ def mainloop(l):
|
|||
|
||||
last_pixel_update = 0
|
||||
|
||||
for i in range(6):
|
||||
LED_NP[i] = (255,255,255, 255)
|
||||
LED_NP.write()
|
||||
time.sleep(1)
|
||||
#for i in range(6):
|
||||
# LED_NP[i] = (255,255,255, 255)
|
||||
#LED_NP.write()
|
||||
#time.sleep(1)
|
||||
|
||||
while True:
|
||||
ctr += 1
|
||||
# run one iteration of control loop
|
||||
last_action_start = controlloop(last_action_start, next_action)
|
||||
if time.time() > last_pixel_update + 0.5:
|
||||
#LED_NP[ctr % 6] = (ctr*3 % 255, ctr*2 % 255, (ctr+1)*3 % 255)
|
||||
last_pixel_update = time.time()
|
||||
LED_NP.write()
|
||||
#if time.time() > last_pixel_update + 0.5:
|
||||
# #LED_NP[ctr % 6] = (ctr*3 % 255, ctr*2 % 255, (ctr+1)*3 % 255)
|
||||
# last_pixel_update = time.time()
|
||||
# LED_NP.write()
|
||||
|
||||
a = None
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue