Merge branch 'pylint' of https://github.com/craigargh/Adafruit_Learning_System_Guides into pylint
This commit is contained in:
commit
3d73c2984e
1 changed files with 2 additions and 2 deletions
|
|
@ -60,9 +60,9 @@ def wheel(pos):
|
|||
# The colours are a transition r - g - b - back to r.
|
||||
if (pos < 0) or (pos > 255):
|
||||
return (0, 0, 0)
|
||||
if (pos < 85):
|
||||
if pos < 85:
|
||||
return (int(pos * 3), int(255 - (pos * 3)), 0)
|
||||
elif (pos < 170):
|
||||
elif pos < 170:
|
||||
pos -= 85
|
||||
return (int(255 - pos * 3), 0, int(pos * 3))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue