Testing the A4988 Stepper Motor

The Arduino Mega 2560 is used here to drive a single A4988 stepper motor as shown in the figure below

To use the Arduino sketch effectively upload the code below and chose the correct

MS step combination