print("Hello, BUZZER!")
print('Date: 27/11/2023')
print('By: Raziq')
#Import all necessary libraries
from machine import Pin, PWM #Pulse with modulation
from utime import sleep
#Declare Pin
buzzer = PWM(Pin(33), Pin.OUT)
#Main program
while True:
for i in range (10):
buzzer.init(freq=500, duty=100)
sleep(0.5)
buzzer.init(freq=1, duty=0)
sleep(0.5)
sleep(3)