Setting pin modes in a custom library

Please edit your code and add in code tags.