#include <AFMotor.h> AF_Stepper motor1(400,1); AF_Stepper motor2(400,1); void forwardstep1() { motor1.onestep(FORWARD,SINGLE); } void backwardstep1() { motor1.onestep(BACKWARD,SINGLE); } void forwardstep2() { motor2.onestep(FORWARD,SINGLE); } void backwardstep2() { motor2.onestep(BACKWARD,SINGLE); } void setup() { motor1.setSpeed(50); motor2.setSpeed(50); } void loop() { motor1.step(100,FORWARD,SINGLE); delay(1000); motor2.step(800,FORWARD,SINGLE); delay(1000); motor2.step(800,BACKWARD,SINGLE); }