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

How to set GPIO as open drain ouput mode

I want to use a GPIO as input pin and output pin at the same time with an external pull-up resistor. Thanks.