logo

蜂鸣器连接P0和3.3V引脚,蜂鸣器不响

2024-11-12 22:31
W
_5nic
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()
W
_5nic

蜂鸣器是有源的3.3V

2024-11-19 20:10
I
网红小智智 星瞳科技

buzzer.low()

下面没延时