import board
import digitalio
import time
# Set up LED on any GPIO pin (Example: GP15)
led = digitalio.DigitalInOut(board.GP15)
led.direction = digitalio.Direction.OUTPUT
# Blink the LED 5 times using a for loop
for i in range(5): # Loop runs 5 times
led.value = True # Turn LED ON
time.sleep(0.5) # Wait 0.5 seconds
led.value = False # Turn LED OFF
time.sleep(0.5) # Wait 0.5 seconds
print("Done!") # So they know the loop finished