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

void stepX(bool dir){
    dirPinX = dir;
    stepPinX = LOW;
    delayMicroseconds(2);
    stepPinX = HIGH;
    xPosition+=dir?1:-1;
}
void stepY(bool dir){
    dirPinY = dir;
    stepPinY = LOW;
    delayMicroseconds(2);
    stepPinY = HIGH;
    yPosition+=dir?1:-1;
}

                currentDuringTime = targetDuringTime;
                motionDir = 0;
            }
        }else if(motionDir<0&&currentDuringTime<50000){
            
            if(motionDir<-150){
                motionAcc = -1;
