I did set the connections for step and Dir to 12 and 13 as your code said, and results are the same. Spins continuously in one direction. Just to show I'm doing what you suggest. I also put my multimeter on the Dir input to the stepper driver. It read 4.40 vdc.
Chuck
Chuck
Micromark 7x14 Lathe, X2 Mill , old Green 4x6 bandsaw
The difficult takes me a while, the impossible takes a little longer.
The difficult takes me a while, the impossible takes a little longer.