import machine
import time
# Set pin 0
led = machine.Pin(0, machine.Pin.OUT)
# Infinite loop to blink the LED
while True:
led.toggle() # Change LED's status
time.sleep(0.5) # Wait for 0.5 seconds
import machine
import time
# Set pin 0
led = machine.Pin(0, machine.Pin.OUT)
# Infinite loop to blink the LED
while True:
led.toggle() # Change LED's status
time.sleep(0.5) # Wait for 0.5 seconds