detach()

描述

取消指定該物件的伺服馬達信號輸出腳位。如果所有 Servo 物件都沒有被指定輸出訊號的腳位,那麼 analogWrite() 將恢復產生 PWM 的功能。

語法


servo.detach()

參數

無參數

回傳

無回傳值

See also

attach()
attached()


函式庫參考主頁面

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.