fixes per blitz

This commit is contained in:
ladyada 2018-02-06 12:37:57 -05:00
parent 21e406e3c7
commit 434ab33d0b

View file

@ -8,7 +8,7 @@ pixpin = board.D0 # what pin the LEDs are on
numpix = 16 # number of LEDs in ring!
BPP = 4 # required for RGBW ring
ring = neopixel.NeoPixel(pixpin, numpix, bpp=BPP, brightness=1.0)
ring = neopixel.NeoPixel(pixpin, numpix, bpp=BPP, brightness=0.9)
def val(pin):
# divides voltage (65535) to get a value between 0 and 255
@ -20,5 +20,5 @@ while True:
# time.sleep(1)
# change floating point value to an int
ring.fill(0, 0, 0, int(val(pot)))
ring.fill((0, 0, 0, int(val(pot))))
time.sleep(0.01)