Add .fill() example

This commit is contained in:
Pierrick C 2018-11-01 18:39:19 +01:00
parent 3eed4aee72
commit cff5c1087d
1 changed files with 1 additions and 2 deletions

View File

@ -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: