Hi Anuj,
You are correct, set the GPIO pin to be an input and open drain with no pull resistor if you want it to have a high impedance.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------