     long y0 = yPosition;
     long x1 = tx;
     long y1 = ty;
-    currentDuringTime = max(targetDuringTime+2000,2000);
+    currentDuringTime = max(targetDuringTime+500,1000);
     motionDir = 1;
     motionAcc = 1;
     long dx,dy,sx,sy;

            
            //     delayUs;delayUs;
        }
        Serial.println(millis()-ttt);
    }else{
        motionDir = 1;
        while(true){

    pinMode(7,OUTPUT);
    analogWrite(7,0);
    Serial.print("start\n");
    
}

void loop(){
