Update gemma_m0_clockwork_goggles.py
Updated code to include lines for RGB vs RGBW NeoPixels
This commit is contained in:
parent
0055ca9323
commit
4cf9e8429f
1 changed files with 7 additions and 0 deletions
|
|
@ -10,10 +10,17 @@ pixpinLeft = board.D1 #Data In attached to Gemma pin D1
|
|||
pixpinRight = board.D0 #Data In attached to Gemma pin D0
|
||||
numpix = 16
|
||||
|
||||
#Use these lines for RGBW NeoPixels
|
||||
stripLeft = neopixel.NeoPixel(pixpinLeft, numpix, bpp=4, brightness=.18,
|
||||
auto_write=False)
|
||||
stripRight = neopixel.NeoPixel(pixpinRight, numpix, bpp=4, brightness=.18,
|
||||
auto_write=False)
|
||||
#uncomment the lines below for RGB NeoPixels
|
||||
#stripLeft = neopixel.NeoPixel(pixpinLeft, numpix, bpp=3, brightness=.18,
|
||||
# auto_write=False)
|
||||
#stripRight = neopixel.NeoPixel(pixpinRight, numpix, bpp=3, brightness=.18,
|
||||
# auto_write=False)
|
||||
|
||||
|
||||
def cog(pos):
|
||||
# Input a value 0 to 255 to get a color value.
|
||||
|
|
|
|||
Loading…
Reference in a new issue