void release() { #if MOTOR_SHIELD_VERSION == 1 m1.release(); m2.release(); #else m1->release(); m2->release(); #endif }
void setup() { Serial.begin(9600); // set up Serial library at 9600 bps Serial.println("Stepper test!"); motor.setSpeed(10); // 10 rpm motor.release(); delay(1000); motor.step(100, BACKWARD, INTERLEAVE); }