Accelstepper Same Direction Pin

Because my steppers direction is same for all of them, can I use same direction pin all the stepper like below?

#include <AccelStepper.h>

AccelStepper stepper1(1,2,10);
AccelStepper stepper2(1,3,10);
AccelStepper stepper3(1,4,10);
AccelStepper stepper4(1,5,10);
AccelStepper stepper5(1,6,10);
AccelStepper stepper6(1,7,10);
AccelStepper stepper7(1,8,10);
AccelStepper stepper8(1,9,10);

thank you in advance

can I use same direction pin all the stepper like below?

Why didn’t you ask your Arduino that?

I prepared this setup to my friend but do not have the required hardware like steppers for the moment to test. Still waiting the answer thanks.

I wouldn't see a problem connecting several drivers' direction pins to one Arduino pin. Though if there are too many drivers the Arduino signal may not be strong enough.

But whether you could use the same pin for several stepper instances would depend on what goes on within the AccelStepper code. I don't think it would do any harm to try it.

...R