'dirPin' cannot be used as a function

A good fix would be to remove the whole function and replace its syntactically challenging call
by the proper call(s) to the used stepper library.

But in any case learn

function definitions are also closely connected.