Update wheel

This commit is contained in:
Kattni Rembor 2018-12-19 12:57:41 -06:00
parent 3d9da33cb4
commit 1e378eeef9

View file

@ -42,7 +42,7 @@ def wheel(pos):
r = 0
g = int(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):