The documentation implies this exists but it is a "To Do" in the code. I made a simple implementation of this function if you are interested. Added an argument to make it easier. Mimics the code under "write" with wait=true.
bool VarSpeedServo::isMoving(int value) {
if (value < MIN_PULSE_WIDTH) {
if (read() != value) return(true);
} else {
if (readMicroseconds() != value) return(true);
}
return(false);
}
The documentation implies this exists but it is a "To Do" in the code. I made a simple implementation of this function if you are interested. Added an argument to make it easier. Mimics the code under "write" with wait=true.
bool VarSpeedServo::isMoving(int value) { if (value < MIN_PULSE_WIDTH) { if (read() != value) return(true); } else { if (readMicroseconds() != value) return(true); } return(false); }