Added a function to set a Gpio pin
Documented method input and returns