- Sun Nov 27, 2016 3:47 pm
#58768
edwin wrote:Rudy, thanks. Well, yes and no. It isnt the relabelling that confuses me as i thought i had that covered, but the fact someone says he is using D0 and D2 and then declares Wire.begin(0,2) rather than Wire.begin(D0,D2) because as far as I know the compiler doesnt interpret that the same, regardless which ESPboard is used.
It is not about the extra pins of the flash memory, that is a complete separate issue.
OK I got it. What I think happens is that D0 and D2 (or any other Dx) is defined as being 0, 2, or whatever. But that is dependant on what board you select when you compile. Just like the Arduino boards (Uno, Mega, etc.) do not use the native port designation. So if someone selects a NodeMCU board then they might use different D(port) numbers that someone who would compile with a generic board, or one that follows the manufacturer's native designation.
Of course this can cause confusion, as you know.