run()
Description
Starts the servo (i.e., the servo begins to generate power). If you have previously called setPosition() to set a target angle, the servo will begin to rotate to the set angle. Note that since this function immediately generates power, avoid manually rotating the servo to avoid injury or damage.
Syntax
servo.run()
Parameters
servo
: A variable of type AIServo
.
Postback
None
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
See also
Library Reference Home
Text in the 86Duino reference material is adapted from the Arduino reference material and is licensed under the Creative Commons Attribution-Share Alike 3.0 License. The code examples in the reference materials have been released into the public domain.