 OutputPin stepPinX(4);
 OutputPin dirPinY(3);
 OutputPin stepPinY(2);
-#define minPulseTime 1
-#define delayUs __asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t");__asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t");__asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t");__asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t")
+
 long xPosition = 0;
 long yPosition = 0;
 

                err += dx;
                stepY(sy);
            }
            delayMicroseconds(currentDuringTime);
            
            //     delayUs;delayUs;
        }

            if (dy!=0) { 
                stepY(dy>0);
            }
            if(currentDuringTime>1000){
                delay((int)(currentDuringTime/1000));
                delayMicroseconds(currentDuringTime%1000);
            }else{
                delayMicroseconds(currentDuringTime);
            }
        }
    }
    isMoving = false;
