BUGFIX: The output/input types of the controller pins should be defined in the setup() loop.

Before, the pins were not properly defined.