As you might expect, there is an Arduino library to support stepper motors. This makes the process of using a motor very easy.
After including the 'Stepper' library, the four control pins 'in1' to 'in4' are defined.
To tell the Arduino Stepper library which pins are connected to the motor controller, the following command is used: