from machine import Pin
from time import sleep
# Define the pins
LED1 = Pin(5, Pin.OUT)
LED2 = Pin(9, Pin.OUT)
LED3 = Pin(13, Pin.OUT)
# Infinite loop
while True:
# Turn the LEDs on
LED1.on()
LED2.on()
LED3.on()
# Wait for 0.5 seconds
sleep(1)
# Turn the LEDs off
LED1.off()
LED2.off()
LED3.off()
# Wait for 0.5 seconds
sleep(1)