# www.robotronix.co.il robotics blocks
# חוג רובוטיקה רובוטיקס בלוקס לימוד מיקרופייתון
# https://robotronix.co.il/%d7%a8%d7%95%d7%91%d7%95%d7%98%d7%a8%d7%95%d7%a0%d7%99%d7%a7%d7%a1-%d7%9b%d7%9c%d7%9c%d7%99/%d7%97%d7%95%d7%92-%d7%a8%d7%95%d7%91%d7%95%d7%98%d7%99%d7%a7%d7%94-%d7%a1%d7%a4%d7%a8%d7%99%d7%99%d7%aa-%d7%93%d7%95%d7%92%d7%9e%d7%90%d7%95%d7%aa-%d7%9e%d7%99%d7%a7%d7%a8%d7%95-%d7%a4%d7%99/
from machine import Pin, PWM
import time
buzzer = PWM(Pin(2), freq=440, duty=512)
def SoundBuz(freq, sleep):
buzzer.freq(freq)
buzzer.duty(512)
time.sleep(sleep)
while True:
SoundBuz(440, 0.5)
SoundBuz(880, 0.5)