import time
import machine
from machine import Pin, Timer

#pin 25 connected directly to the led
#creating a cnstructor
led = Pin(1, Pin.OUT)

print(machine.freq())

def blink_led(timer):
    led.on()
    time.sleep(0.5)
    led.off()
    time.sleep(0.5)

timer = Timer()
timer.init(freq=2, mode=Timer.PERIODIC, callback=blink_led)
time.sleep(5)
timer.deinit()

BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT