Update gemma_m0_clockwork_goggles.py

Fixed one color line for RGB NeoPixels (had an erroneous fourth value on line 33)
This commit is contained in:
John Edgar Park 2017-10-05 11:55:24 -07:00 committed by GitHub
parent 383a37afd2
commit 712e14a292

View file

@ -30,7 +30,7 @@ def cog(pos):
#return (120, 0, 0, 0) #first color, red: for RGBW NeoPixels
return (120, 0, 0) #first color, red: for RGB NeoPixels
if (pos < 85):
return (int(pos * 3), int(255 - (pos*3)), 0, 0)
return (int(pos * 3), int(255 - (pos*3)), 0)
#return (125, 35, 0, 0) #second color, brass: for RGBW NeoPixels
return (125, 35, 0) #second color, brass: for RGB NeoPixels
elif (pos < 170):