Update main.py
parent
30e9b4ac8e
commit
93ce452ad7
10
main.py
10
main.py
|
@ -117,15 +117,15 @@ if __name__ == '__main__':
|
||||||
blink(strip, Color(255,0,0), Color(255,255,255))
|
blink(strip, Color(255,0,0), Color(255,255,255))
|
||||||
else:
|
else:
|
||||||
print(idle_mode)
|
print(idle_mode)
|
||||||
if int(idle_mode) == '1':
|
if idle_mode == '1':
|
||||||
rainbowCycle(strip)
|
rainbowCycle(strip)
|
||||||
elif int(idle_mode) == '2':
|
elif idle_mode == '2':
|
||||||
setColor(strip, Color(255,0,0))
|
setColor(strip, Color(255,0,0))
|
||||||
elif int(idle_mode) == '3':
|
elif idle_mode == '3':
|
||||||
setColor(strip, Color(0,255,0))
|
setColor(strip, Color(0,255,0))
|
||||||
elif int(idle_mode) == '4':
|
elif idle_mode == '4':
|
||||||
setColor(strip, Color(0,0,255))
|
setColor(strip, Color(0,0,255))
|
||||||
elif int(idle_mode) == '5':
|
elif idle_mode == '5':
|
||||||
setColor(strip, Color(125,245,255))
|
setColor(strip, Color(125,245,255))
|
||||||
else:
|
else:
|
||||||
blink(strip, Color(255,0,0), Color(0,0,0))
|
blink(strip, Color(255,0,0), Color(0,0,0))
|
||||||
|
|
Loading…
Reference in New Issue