from machine import Pin
from time import sleep

# Definer LED-pins
led_1 = Pin(26, Pin.OUT)
led_2 = Pin(13, Pin.OUT)
led_3 = Pin(33, Pin.OUT)

# Blink-funktion
def blink_leds():
    while True:
        # Tænd alle LEDs
        led_1.on()
        led_2.on()
        led_3.on()
        sleep(0.5)  # Vent i 0.5 sekunder

        # Sluk alle LEDs
        led_1.off()
        led_2.off()
        led_3.off()
        sleep(0.5)  # Vent i 0.5 sekunder

# Kør blink-funktionen
blink_leds()