parent
b1c4e67722
commit
cf5e06c192
6
main.py
6
main.py
|
@ -212,6 +212,12 @@ if __name__ == '__main__':
|
||||||
rainbowCycle(strip)
|
rainbowCycle(strip)
|
||||||
|
|
||||||
elif mode == 1:
|
elif mode == 1:
|
||||||
|
try:
|
||||||
|
r
|
||||||
|
except NameError:
|
||||||
|
r = "255"
|
||||||
|
g = "0"
|
||||||
|
b = "0"
|
||||||
setColor(strip, Color(int(r), int(g), int(b)))
|
setColor(strip, Color(int(r), int(g), int(b)))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue