isMoving()
Description
Checks if the servo is moving.
Syntax
servo.isMoving()
Parameters
servo
: A variable of type AIServo
.
Return
Returns true if the servo is moving. Returns false otherwise (e.g., if the servo is paused, stopped, released, or has reached its target position).
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
See also
- attach()
- setPosition()
- isAIServoMultiMoving()
Library Reference Home
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.