Limit switch with Nema 17 and A4988

you mean :slight_smile:

        for (int x = 0; x < 2 ; x++) {
          digitalWrite(stepPin2, HIGH);
          delayMicroseconds(6000);
          digitalWrite(stepPin2, LOW);
          delayMicroseconds(6000);
        }