how to control 2 servos with one push button at the same time?

So I already figured out how to control 1 servo with the push button. How would I incorporate another servo into my code so that they run at the same time? Can you give me an example? It doesn't matter what pin for the other servo.

servo_code.txt (820 Bytes)

If the the 2nd servo is to mirror the first just duplicate everything that refers to myservo for another e.g. myservo2. If it has to do something different then you'll need to work that out yourself.

The Servo library can handle more than one servo at a time.

Steve

.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom... :slight_smile: