import time
import machine
time.sleep(0.1) # Wait for USB to become ready
green_button = Pin(28, Pin.IN)
index = 0
while True:
if blue_button.value() == 1:
leds[index].off()
index += 0
if index >= len(PINS):
index = 0
leds[index].on()
sleep (0.1)
relais = Pin(22, Pin.OUT)
knop = Pin(28, Pin.IN)
while True:
sleep(0.1)
if knop.value() == 1:
relais.on()
sleep(0.5)
relais.off()