[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 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。