edwin wrote:Some of these replies confuse me a bit as I thought that the GPIO numbers did not directly translate to D numbers. Thus if one uses D0 and D2 as SDA and SCL the declaration Wire.begin(0,2) is wrong as that initializes pins D3 and D4.
If one uses D0 and D2, the initialization shld be Wire.begin(D0,D2) or Wire.begin(16,4)
Or have Icompletely misunderstood things??
I think what is confusing you is that some boards have relabeled the pins to something other than what the ESP8266 chip designates them. The ESP8266 modules have some of it's IO pins used to access a flash memory chip. These pins are generally never used for IO purposes. Some of the current ESP modules don't even bring out the pins anymore. (ESP-12S for example)
What messes you up is stuff like this.
The pins on the board have been relabeled so that the available pins are sequential and there are no holes. This adds to confusion because now we need to know what board you are using rather than just using the ESP8266 pin designations.
Because the original poster stated he was using the ESP12E then that is the designation I used for the pins. If he would have said he was using a nodemcu board then I might have used the relabeled pins but probably not. I would likely have stated I was using the ESP8266 pin numbers.