This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to disable GPIO pin

Hi,

If I don't configure GPIO pin (for LED), the led is not lit, and it doesn't  draw any current. (16uA).

But If I configured it as output, then disconnect, OR output is 0 (LED not lit), it constantly draws 17uA extra, with total 33uA).

If I configured it as default ( nrf_gpio_cfg_default() ), it also draws ( 17uA extra, with total 33uA) .

My question is how to set GPIO pin back to power-up default as it has not been configured (never used), after it is configured as output?

Thank you,

David Zhou 

Related