import machine
import time

# Pin 2 is the internal LED for XIAO ESP32C3.
# If you have the XIAO RP2040, change the 2 below to 25.
led = machine.Pin(25, machine.Pin.OUT)
print("--- MicroPython Blink Test Started ---")

while True:
    led.value(1)      # Turn LED ON
    print("LED ON")
    time.sleep(2.5)   # Wait 0.5 seconds
    
    led.value(0)      # Turn LED OFF
    print("LED OFF")
    time.sleep(2.5)   # Wait 0.5 seconds