#include <AccelStepper.h>
const int limitSwitch_Up = A0;
const int limitSwitch_Down = A1;
const int button_Up = A2;
const int button_down = A3;
const int limitSwitch_stop = A4;
AccelStepper stepper(1, 7, 6);
void setup() {
// put your setup code here, to run once:
stepper.setMaxSpeed(5000);
stepper.setAcceleration(1000);
stepper.setSpeed(1500);
}
void loop() {
// put your main code here, to run repeatedly:
stepper.runSpeed()
}