I have problem with using I2C on default pins (D1 and D2) when D0 (GPIO16) is set as output. To GPIO16 is connected mosfet transistor to drive two LEDs. Generally GPIO16 works well - I'm able to turn on and turn off LEDs. The problem is with I2C. When I set the D0(GPIO16) as output the I2C interface stops working. I'm not able to communicate with other sensors. If I again set D0 as INPUT, I2C is working again. Why GPIO16 interfere with I2C? How to workaround this problem? The schema of my device is in attachement.
I have problem with using I2C on default pins (D1 and D2) when D0 (GPIO16) is set as output. To GPIO16 is connected mosfet transistor to drive two LEDs. Generally GPIO16 works well - I'm able to turn on and turn off LEDs. The problem is with I2C. When I set the D0(GPIO16) as output the I2C interface stops working. I'm not able to communicate with other sensors. If I again set D0 as INPUT, I2C is working again. Why GPIO16 interfere with I2C? How to workaround this problem? The schema of my device is in attachement.