26 Serial.println(
"Slave not found! Check connections and restart.");
39 if (stepper.myNum < 0) {
40 Serial.println(
"Error: stepper could not be allocated");
45 stepper.setMaxSpeed(2000);
46 stepper.setAcceleration(50);
47 stepper.moveTo(30000);
61 while (stepper.distanceToGo() != 0) {
64 stepper.moveTo(-stepper.currentPosition());
73 if (stepper.distanceToGo() == 0)
74 { stepper.moveTo(-stepper.currentPosition()); }