import machine
import neopixel
import time
# Configuration des pins
BAND1_PIN = 1
BAND2_PIN = 2
NUM_LEDS = 8
# Initialisation
band1 = neopixel.NeoPixel(machine.Pin(BAND1_PIN), NUM_LEDS)
band2 = neopixel.NeoPixel(machine.Pin(BAND2_PIN), NUM_LEDS)
# Test des bandes LED
while True:
band1.fill((255, 255, 255)) # Blanc
band1.write()
time.sleep(1)
band1.fill((0, 0, 0)) # Éteint
band1.write()
band2.fill((255, 255, 255)) # Blanc
band2.write()
time.sleep(1)
band2.fill((0, 0, 0)) # Éteint
band2.write()