from machine import Pin, PWM, ADC from utime import sleep buzzer = PWM(Pin(22)) tones = { "B0": 31, "C1": 33, "CS1": 35, "D1": 37, "DS1":…
Python#copy this from machine import Pin, PWM from utime import sleep banana = Pin(1, Pin.IN, Pin.PULL_UP)#*ummmmmmmmmmmmmmmmmmmmmmmmmmmmmm led = Pin(28, Pin.OUT) buzzer = PWM(Pin(22)) buzzer.freq(1000) while…
we will be making a sing-a-song project to-week! here is the base code: