Wiring two A4988 Drivers to 1 Arduino board

You can even share the direction pins if you want to save a pin - so long as you don't
step both A4988's simultaneously. The direction pin is only sampled when the step
pin has a rising edge.