Revert "Change pinMode to SET_INPUT or SET_OUTPUT"

This reverts commit 1d0fe035f3aeb4af0e686fcb13c9a720248db462.