from machine import Pin,PWM,SoftI2C
from ssd1306 import SSD1306_I2C
import time
i2c=SoftI2C(sad=Pin(27),scl=Pin(14))
oled=SSD1006_I2C(128,64,i2c)
while 1:
def my Beep(music_value,frep_value):
Beep=PWM(Pin(2),freq=1,duty=128)
oled.fill(0)
oled.text(str(music_value),64,32)
oled.show()
Beep.freq(freq_value)
time.sleep(1)
myBeep(1,262)
myBeep(2,294)
myBeep(3,330)
myBeep(4,350)
myBeep(5,393)
myBeep(6,441)
myBeep(7,495)
Beep.deinit()
''' Beep=PWM(Pin(2),frep=1,duty128)
oled.fill(0)
oled.t