#include "BasicStepperDriver.h"
#include <Arduino.h>
#define MICROSTEPS 1
#define MOTOR_STEPS 200
#define STEPIN 13
#define DIRPIN 12
#define RPM 160
BasicStepperDriver stepper(MOTOR_STEPS, STEPIN, DIRPIN);

int angle = 0;

void setup(){
stepper.begin(RPM, MICROSTEPS);
}

void loop(){
for(angle == -100; angle <= 100; angle++){
     stepper.move(1);
    delay(15);
}
for(angle == 100; angle >= -100; angle--){
       stepper.move(-1);
        delay(15);
}
}
A4988