#include "BasicStepperDriver.h"
#include <Arduino.h>
#define MOTOR_STEPS 200
#define DIR_PIN 12
#define STEP_PIN 13
#define MICROSTEPS 2
#define RPM 60
BasicStepperDriver stepper(MOTOR_STEPS, DIR_PIN, STEP_PIN);
int X;
void setup(){
stepper.begin(RPM, MICROSTEPS);
}
void loop(){
for(X == -100; X < 100; X++){
stepper.move(1);
delay(15);
}
for(X == 100; X > -100; X--){
stepper.move(-1);
delay(15);
}
}