Gets the GPIO pin type specified by an index.
The pin type determines whether or not input debouncing takes place.