Update main.py

master
Ebbe Baß 2021-11-09 19:02:52 +01:00
parent daa21eaee8
commit 30e9b4ac8e
1 changed files with 5 additions and 5 deletions

10
main.py
View File

@ -117,15 +117,15 @@ if __name__ == '__main__':
blink(strip, Color(255,0,0), Color(255,255,255))
else:
print(idle_mode)
if idle_mode == '1':
if int(idle_mode) == '1':
rainbowCycle(strip)
elif idle_mode == '2':
elif int(idle_mode) == '2':
setColor(strip, Color(255,0,0))
elif idle_mode == '3':
elif int(idle_mode) == '3':
setColor(strip, Color(0,255,0))
elif idle_mode == '4':
elif int(idle_mode) == '4':
setColor(strip, Color(0,0,255))
elif idle_mode == '5':
elif int(idle_mode) == '5':
setColor(strip, Color(125,245,255))
else:
blink(strip, Color(255,0,0), Color(0,0,0))