How to configure GPIO pin as an I2C pin?

@Valen. Yes. They are related. But this is a more specific question so I made a separate thread.