Hey all
I have got a problem I don't how to solve. Say i have got two servo's . with one servo's I want to do a sweep (just like the servo library sweep example). with the other servo I want that at the same time it will preform the following code:
if (abs(potValR - potNeuVal) < potThresh){
retStateR = 1 - retStateR;
// digitalWrite(13,HIGH);
if (retStateR == 1){
RetServoR.write(RetServoLneu-Retrection);
delay(200);
}
else{
RetServoR.write(RetServoLneu+Retrection);
delay(200);
}
So basically i want during the 200ms delay that the other servo will keep on with it's sweep, can i do that, how?