Copied example from stepper library. This will evolve into the full driver code.
Decided to write own step motor driver after all, rather than use the library.

I will want to be able to add a switch which restricts the movement of the motor and will add a check of its state
after every step.