parent
3bfe66fdb8
commit
b098463363
1
main.py
1
main.py
|
@ -43,7 +43,6 @@ def wheel(pos):
|
||||||
return Color(255 - pos * 3, 0, pos * 3)
|
return Color(255 - pos * 3, 0, pos * 3)
|
||||||
else:
|
else:
|
||||||
pos -= 170
|
pos -= 170
|
||||||
client.publish("server-rack-led/rgb", str(0)+","+str(pos * 3)+","+str(255 - pos * 3))
|
|
||||||
return Color(0, pos * 3, 255 - pos * 3)
|
return Color(0, pos * 3, 255 - pos * 3)
|
||||||
|
|
||||||
def rainbowCycle( strip, wait_ms=5, iterations=10):
|
def rainbowCycle( strip, wait_ms=5, iterations=10):
|
||||||
|
|
Loading…
Reference in New Issue