#include <Stepper.h>
const int stepsPerRevolution = 200;
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
myStepper.setSpeed(60);
Serial.begin(9600);
}
void loop() {
Serial.println("Sentido \"horario\"");
myStepper.step(stepsPerRevolution);
delay(500);
Serial.println("Sentido \"antihorario\"");
myStepper.step(-stepsPerRevolution);
delay(500);
}