/* This code uses the AccelStepper library to move a stepper at a constant speed
to a position with setSpeed() and runSpeedToPosition, without acceleration and deceleration. Nonblocking???
*/
#include <AccelStepper.h>
#define step 13
#define dir 12
AccelStepper stepper(1, step, dir);
void setup(){
stepper.setMaxSpeed(1000);
}
void loop(){
stepper.setSpeed(200);
stepper.moveTo(400);
stepper.runSpeedToPosition();
}