# Connect 2 servos more in the exist program

**URL:** https://forum.pololu.com/t/connect-2-servos-more-in-the-exist-program/18588
**Category:** Servo controllers and servos
**Created:** [January 6, 2020, 9:04pm UTC](https://forum.pololu.com/t/connect-2-servos-more-in-the-exist-program/18588 "2020-01-06T21:04:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![BrandonM](https://forum.pololu.com/user_avatar/forum.pololu.com/brandonm/32/609_2.png) [@BrandonM](https://forum.pololu.com/u/BrandonM)
#### Post date: [January 7, 2020, 7:11pm UTC](https://forum.pololu.com/t/connect-2-servos-more-in-the-exist-program/18588/2 "2020-01-07T19:11:50Z")

</div>

Hello, Panos.

It will be difficult to do both of those things at the same time with a single Maestro script. If you want the script to be moving 2 servos while also monitoring for a button press and running a sequence with a second pair of servos when it is pressed, you would need to get rid of any blocking code, such as the `DELAY` command. You might be able to write a script using the `GET_MS` command to handle the timing of things, but it would not be trivial.

[David’s post in this thread](https://forum.pololu.com/t/parallel-switch-use/14079/2) has some example code he made showing how you could run multiple sequences concurrently like you are describing, so you could try using that as a starting point. Please note that since that script uses the `peek` and `poke` commands, you will need a Mini Maestro (not the 6-channel Micro Maestro) for it to work.

Brandon

---

_[View the full topic](https://forum.pololu.com/t/connect-2-servos-more-in-the-exist-program/18588)._
