예제 #1
0
void release() {
#if MOTOR_SHIELD_VERSION == 1
  m1.release();
  m2.release();
#else
  m1->release();
  m2->release();
#endif
}
예제 #2
0
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); 
}