Shows how to multiple simultaneous steppers Runs one stepper forwards and backwards, accelerating and decelerating at the limits. Runs other steppers at the same time
#include <AccelStepper.h>
void setup()
{
stepper2.setMaxSpeed(300.0);
stepper2.setAcceleration(100.0);
stepper2.moveTo(1000000);
stepper3.setMaxSpeed(300.0);
stepper3.setAcceleration(100.0);
stepper3.moveTo(1000000);
}
void loop()
{
stepper2.run();
stepper3.run();
}