from machine import Pin
from time import sleep
buzzer=Pin(23,Pin.OUT)
while True:
    buzzer.on()
    sleep(0.5)
    buzzer.off()
    sleep(0.5)