#include <Arduino.h>
#include <Stepper.h>
const int stepsPerRevolution = 200;
Stepper myStepper(stepsPerRevolution,18,19,21,22);
void setup(){
myStepper.setSpeed(60);
Serial.begin(9600);
}
void loop(){
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);
Serial.println("Anticlockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}