fixes per blitz
This commit is contained in:
parent
21e406e3c7
commit
434ab33d0b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue