How to turn pin off properly

How to turn pin off properly? I want to avoid any output current and also want to avoid activation of any irq.

I guess I should need something like:

set gpio.bootconf = “[apalispin_2] altfn=-1 dir=out outputmode=tristate pull=none”

I would like to be sure that I achieve exactly what I want. Maybe this example contains more parameters than is actually needed.

Dear @bezmot,

Your configuration is correct, only a small change

set gpio.bootconf = “[apalispin_2] altfn=-1 dir=out outmode=tristate pull=none”

Please be remember, Only append your configuration to the default configuration other than you are sure what you are modifying.

Let us know if you any other questions.