Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
import time from machine import Pin #from ulab import numpy as np buzzer = Pin("P0", Pin.OUT) while True: buzzer.high() time.sleep(2) buzzer.low()
蜂鸣器是有源的3.3V