Calculate the correct current limit for driver A4988

The Stepper library reference shows how to use a L293 with 2 pins to drive a bipolar motor.

Also a 2 wire circuit for a unipolar motor with a ULN2003 or ULN2004.