 boolean newData = false;
 
 void setup() {
-    pinMode(LED_BUILTIN, OUTPUT);
     pinMode(stepPin, OUTPUT);
     pinMode(dirPin, OUTPUT);
     pinMode(sensorPin, INPUT_PULLUP);

        if (i>(accelSteps - decelLook) && digitalRead(sensorPin)) break;
    }
    findsensor(max(maxPulse, endpulse));
    digitalWrite(LED_BUILTIN, LOW);
}

int timedturn(int halfturns, int duration, bool dir) {

    return (pitch / 2.0) + 36;
}

void onestep(unsigned long pulseTime) {
    digitalWrite(stepPin, HIGH);
    delayMicroseconds(pulseWidth);
