Add .fill() example
This commit is contained in:
parent
3eed4aee72
commit
cff5c1087d
@ -28,8 +28,7 @@ NEOPIX_PIN = 2 # N° de la broche de contrôle des néopixels
|
||||
pixel_strip = neopixel.NeoPixel(machine.Pin(NEOPIX_PIN), NB_PIX)
|
||||
|
||||
#Eteint tout à l'initialisation
|
||||
for i in range(NB_PIX):
|
||||
pixel_strip[i] = (0, 0, 0)
|
||||
pixel_strip.fill((0, 0, 0))
|
||||
pixel_strip.write()
|
||||
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user