'dirPin' cannot be used as a function

Bounce2, but I see no connection to the crappy step function,
so I get the impression you did not look at the criticized function?

I did that also.