Arduino中有tone库可供无源蜂鸣器发出指定音调的声音. tone(tonePin,tune,duration) tonePin为蜂鸣器数据引脚,tune为音调频率,duration为持续时间.
確定! 回上一頁