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

Disabling an App_button pin (app_button_disable)

I have a setting where I want to disable a GPIO assigned to app_button. I can use the app_button_disable() function which works well for all the underlying sensing on the pin. However I cannot seem to disable the Pull-up on this pin. As a result even though the button is functionally disabled, it still drawings 0.230mA of current when pushed. Ideally I would like to disable the pull-up while the button is supposed to be disabled. Thus reducing this pushed-current.

I have tried reconfiguring the pin as an input with No Pull-up, Pull-down and even tried setting it to an output in a low state. However it seems like none of these configurations actually affect the the GPIO as is remains an input with an internal pull-up. Please advise if there is a way around this. Thanks

Parents Reply Children
No Data
Related