 
 void setup(){
     Serial.begin(115200);
-    // pinMode(4,OUTPUT);//pulsePin
-    // pinMode(5,OUTPUT);
-    // pinMode(2,OUTPUT);//pulsePin
-    // pinMode(3,OUTPUT);
     Timer1.initialize(500);
     Timer1.attachInterrupt(updateMotion);
     pinMode(7,OUTPUT);

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

OutputPin stepPinX(4);
OutputPin dirPinY(3);
OutputPin stepPinY(2);

long xPosition = 0;
long yPosition = 0;

