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.