Go Down

Topic: Simultaneous but different servo sweeps with four servos (Read 12453 times) previous topic - next topic

PaulS

Quote
I want my servo's to go in the opposite direction but I have no idea how to do it...
Code: [Select]
Servo one;
Servo two;

int pos = someValue;

one.write(pos);
two.write(180-pos); // Assumes that the servo limit is 180
The art of getting good answers lies in asking good questions.

Go Up