I rarely used I2C protocol in the past and recently I have successfully connected an ESP8266 12E model with two different sensor modules. The problem is that I am a confused about usage of I2C pins. I connected SCL and SDA to GPIO4 and GPIO5 respectively (as labeled on some pinouts of the module) and everything works fine. However, in the official documentation it is written that for the SDA and the SCL pins GPIO2 and MTMS (GPIO14) should be used. I tried using pins according to the documentation and calling function Wire.pins to select appropriate pins, but it didn't work. Anyone can clarify this to me?
Cheers,
Vladimir