Enable Pull down Orin NX cpp

Hi, I would appreciate help regarding enabling pull-down/up mode on Orin NX.
In the given situation, when I connect voltage to one of the GPIOs, I get HIGH, and after disconnecting, this state is saved. My goal is that when I disconnect the voltage from the GPIO it will return to LOW state.
I would like to know if this is even possible? And if possible also because of how to do it.
Thank you very much and have a great day.

Hi hadarpinhas,

Are you using the devkit or custom board for Orin NX?
What’s your Jetpack version in use?

Which GPIO pin are you using? Have you configured it as input in pinmux before use?

For your use case, you should configure the pin as Input, Int PD in pinmux spreadsheet.
If the pin is not connected, it will be pulled down through the internal resistor.