from machine import Pin
from time import sleep
buzzer = Pin(18, Pin.OUT)
while True:
buzzer.value(1)
sleep(5)
buzzer.value(0)
sleep(5)
exit(18)
from machine import Pin
from time import sleep
buzzer = Pin(18, Pin.OUT)
while True:
buzzer.value(1)
sleep(5)
buzzer.value(0)
sleep(5)
exit(18)