noTone()

描述

停止由 tone() 产生的方波,在没有任何音频产生的时候呼叫此函式是没有作用的。

注意: 如果你想要在多个 pin 脚上拨放不同的音频,在呼叫下一个 tone() 前你需要先呼叫 noTone()

语法


noTone(pin)

参数

pin: 要停止音频生成的 pin 脚

回传

无回传值

See also

tone()


语法参考主页面

本页由热血青年 LBU 译自英文版。

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.