     int fullspeedsteps = (halfTurnSteps * halfturns) - (accelSteps * 2);
     int pulse = pitchToPulse(pitch);
     int startstoppulse = max(maxPulse, pulse);
-    digitalWrite(LED_BUILTIN, HIGH);
     digitalWrite(dirPin, dir);
     delayMicroseconds(pulseWidth);
     for (int i=0; i<accelSteps; i++) {

boolean newData = false;

void setup() {
    pinMode(LED_BUILTIN, OUTPUT);
    pinMode(stepPin, OUTPUT);
    pinMode(dirPin, OUTPUT);
    pinMode(sensorPin, INPUT_PULLUP);

         ((endpulse + max(maxPulse, endpulse)) * (decelsteps / 2)));
    glissTime = max(0, (glissTime * durationGlissMult) - (durationGlissDiff * 1000L));
    int glisssteps = glissTime / ((startpulse + endpulse) / 2);
    digitalWrite(dirPin, dir);
    delayMicroseconds(pulseWidth);
    for (int i=0; i<accelsteps; i++) {
