Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By Moniman
#51657 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
User avatar
By Mmiscool
#51677 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
You do not have the required permissions to view the files attached to this post.
User avatar
By livetv
#51728 @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.