Update wheel
This commit is contained in:
parent
3d9da33cb4
commit
1e378eeef9
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ def wheel(pos):
|
||||||
r = 0
|
r = 0
|
||||||
g = int(pos * 3)
|
g = int(pos * 3)
|
||||||
b = int(255 - pos * 3)
|
b = int(255 - pos * 3)
|
||||||
return (r, g, b) if ORDER == neopixel.RGB or ORDER == neopixel.GRB else (r, g, b, 0)
|
return (r, g, b) if ORDER in (neopixel.RGB, neopixel.GRB) else (r, g, b, 0)
|
||||||
|
|
||||||
|
|
||||||
def rainbow_swirl(wait):
|
def rainbow_swirl(wait):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue