'dirPin' cannot be used as a function

What are you trying to accomplish with the "call" to dirPin()?