from machine import Pin
from utime import sleep
buz = Pin(15, Pin.OUT)
while True:
buz.on()
print("Buzzer is ON")
sleep(1)
buz.off()
print("Buzzer is OFF")
sleep(1)
from machine import Pin
from utime import sleep
buz = Pin(15, Pin.OUT)
while True:
buz.on()
print("Buzzer is ON")
sleep(1)
buz.off()
print("Buzzer is OFF")
sleep(1)