release()
描述
释放伺服机的出力,使伺服机处于脱力状态。
当呼叫 run(),或者 write()、writeMicroseconds(),将会使伺服机再次出力。
语法
servo.release()
参数
servo
:Servo
型别的变数。
回传
范例
#include <Servo86.h> Servo myservo; void setup() { myservo.attach(9); myservo.write(1500); // 将伺服机转到 1500us 初始位置 delay(5000); // 延迟 5 秒 myservo.release(); // 释放伺服机 } void loop() {}
See also
- setPosition()
- run()
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.