from machine import Pin,Timer
LED = Pin(0,Pin.OUT)
LED1 = Pin(1,Pin.OUT)
time = Timer()
time1= Timer()
def flash_LED(timer):
global LED
LED.toggle()
def flash_LED1(timer1):
global LED1
LED1.toggle()
time.init(freq=2.0, mode=Timer.PERIODIC, callback = flash_LED)
time1.init(freq=4.0, mode=Timer.PERIODIC, callback = flash_LED1)