Look here AccelStepper: AccelStepper Class Reference for information on setting up the constructor for stepper driver boards with step and dir inputs.
Look here AccelStepper: AccelStepper Class Reference for information on setting up the constructor for stepper driver boards with step and dir inputs.