User Manual

capable channels (channels 0–11). The inputs on the other channels are digital.
Using a button or switch to control servos
It is possible to connect a button or switch to a Maestro and detect the state of the button in your script.
The script below moves a servo through a predefined sequence of movements, advancing to the next
step each time the button is pushed. It uses channel 0 for the button and channel 1 for the servo.
The button channel must be configured as an input and wired correctly. See Section 7.b for
instructions on how to wire a button to your Maestro using a pull-up resistor, so that the input is
normally high, and when the button is pressed it goes low.
Pololu Maestro Servo Controller User’s Guide © 2001–2017 Pololu Corporation
6. The Maestro Scripting Language Page 81 of 99