import machine
import time
p2=machine.Pin(2,machine.Pin.OUT)
led=machine.Pin(12,machine.Pin.OUT)
buzzer=machine.PWM(p2)
buzzer.freq(1024)
buzzer.duty(500)
time.sleep(0)
buzzer.duty(0)
buzzer.deinit()
while True:
led.value(1)
time.sleep(2)
led.value(0)
time.sleep(5)