'dirPin' cannot be used as a function

Btw, “standard wisdom” is that you should never use two symbols that differ only in capitalization. Sure, it should work, but it is awful for readability.