#include <PololuMaestro.h>
#include <SoftwareSerial.h>
SoftwareSerial maestroSerial(10, 11);
MicroMaestro maestro(maestroSerial);
void setup()
{
maestroSerial.begin(9600);
for (int i = 0; i <= 3; i++) {
maestro.setSpeed(i, 200);
}
}
void loop()
{
for (int i = 0; i <= 3; i++) {
maestro.setTarget(i, 2000);
delay(2000);
maestro.setTarget(i, 12500);
delay(2000);
}
}