User Manual

Just like the sequencing examples above, the script steps through a sequence of frames, but
instead of a timed delay between frames, this example waits for a button press. The
WAIT_FOR_BUTTON_PRESS subroutine can be used in a variety of different scripts, whenever
you want to wait for a button press. You could also expand this example to allow multiple buttons,
continuous motion, or a variety of other types of button control.
Using multiple buttons or switches to control servos
This script demonstrates how to connect your Maestro to multiple buttons. When a button is pressed,
it runs the corresponding sequence.
63 return
Pololu Maestro Servo Controller User’s Guide © 2001–2019 Pololu Corporation
6. The Maestro Scripting Language Page 85 of 102