Accel stepper library with support for 28byj-48 motor

hmm no idea really... uploaded your code and it works just fine.

I see two possible options

  1. Try lowering speed and acceleration as the motors move better in one direction that the other so my only guess is that it is stalling.
  2. Your wiring is incorrect