proposed change of gpio_api (new update pull request)

updated pull request (was #197) to address concern from watarai-san.