from machine import Pin,Timer
LED=Pin(0,Pin.OUT)
tim=Timer()
def Flash_LED(timer):
global LED
LED.toggle()
tim.init(freq=2.0,mode=Timer.PERIODIC,callback=Flash_LED)from machine import Pin,Timer
LED=Pin(0,Pin.OUT)
tim=Timer()
def Flash_LED(timer):
global LED
LED.toggle()
tim.init(freq=2.0,mode=Timer.PERIODIC,callback=Flash_LED)