Add the following snippet to your HTML:
Controlling a Buzzer using Pico
Read up about this project on
from machine import Pin import time buzzer = Pin(15, Pin.OUT) while True: buzzer.value(1) time.sleep(1) buzzer.value(0) time.sleep(1)
Comments