[Servo86]
描述
Release the servo power and put the servo in the disengaged state.
When run() 或 write() 或 writeMicroseconds() is called, the servo will be powered up again.
語法
servo.release()
參數
servo: Variable of the servo type.
回傳
無
範例
#include <Servo86.h>
Servo myservo;
void setup()
{
myservo.attach(9);
myservo.write(1500); // turn the servo to the initial position of 1500us
delay(5000); // delay 5 seconds
myservo.release(); // release the servo
}
void loop() {}參考
- setPosition()
- run()
函式庫參考主頁面
86Duino 參考的文本是根據 知識共享署名-相同方式分享 3.0 許可證,部分文本是從 Arduino 參考 修改的。 參考中的代碼示例已發佈到公共領域。