From d999fb3c53fd1197ec790849543989acf1600933 Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Thu, 13 Sep 2018 17:45:04 +0200 Subject: [PATCH] =?UTF-8?q?Petite=20modification=20pour=20montrer=20la=20m?= =?UTF-8?q?=C3=A9thode=20fill()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/main_1.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/main_1.py b/code/main_1.py index 3c5df24..462fecd 100644 --- a/code/main_1.py +++ b/code/main_1.py @@ -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: