import machine
import random
import time
from machine import Pin,Timer
print(machine.freq()/(10**6))
led = Pin(1,Pin.OUT)
led = Pin(5,Pin.OUT)
led = Pin(9,Pin.OUT)
timer =Timer()
def blink_led(timer):
led.on()
time.sleep(0.5)
led.off()
time.sleep(0.5)
timer.init(freq=2,mode=Timer.PERIODIC, callback=blink_red)
time.sleep(20)
led.off()
timer.definit()