netlabtoolkit / VarSpeedServo

Arduino library for servos that extends the standard servo.h library with the ability to set speed, and wait for position to complete
GNU Lesser General Public License v2.1
292 stars 127 forks source link

sequencePlay #23

Open jgilgan opened 6 years ago

jgilgan commented 6 years ago

I think i found a bug in the sequencePlay function. It works well if it is run for the first time and does not stop. If it is triggered some time after the first run it will not start. I also tried to stop the squence if it was stuck somewhere but it wont make a difference. Example:

if(digitalRead(pin) == LOW) { myservo1.sequencePlay(test, 3);
}

runs fine, but the arduino has to be reset to work again. I also used some different conditions than this pin state to test it out.