// Stepper 2

#include <Stepper.h>
// #define STEPS 200  // 1.8 deg/step, 360/1.8 = 200
int STEPS = 1500 ;
Stepper stepper(STEPS, 8, 9, 10, 11);

void setup()
{
  stepper.setSpeed(30);  // How fast
  Serial.begin(9600) ;
}

void loop()
{
  Serial.println(" + direction") ;
  stepper.step(200);   // 200 step = 1 revolution
  delay(500) ;

  Serial.println(" - direction") ;
  stepper.step(-200);
  delay(500) ;
}