-->
Page 1 of 1

pin number versus GPIO number

PostPosted: Thu Jul 28, 2016 12:57 pm
by Moniman
Hi,

I don't find a relationship between the pin number and GPIO number for a ESP8266 12E.
I suppose it is define by the firmware?

Have a nice day,

Moniman

Re: pin number versus GPIO number

PostPosted: Thu Jul 28, 2016 8:15 pm
by Mmiscool
On the esp modules the pins are labeled as they are on the chip. On the node mcu the pins are labeled with D#s witch are different from the real gpio number. You can address a pin by its number or by the d# in esp basic.

See the flowing picture.
sYo8r3EgY2xq0tabORiJ31w.png

Re: pin number versus GPIO number

PostPosted: Fri Jul 29, 2016 6:01 pm
by livetv
@mmiscool,

I see in the source code where you translate the D numbers to gpio numbers. It gets the job done but I have (somewhere from a month ago) a few lines of code that does the same thing but faster and with less code space. How can I submit this for consideration? I would try compiling myself but I'm not that far up the learning curve yet.

If I did post it here and you've already seen it, pardon me. .. been away for a while.