Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By BigFootIT
#31031 Hi guys,
I read many and many topics but I haven't found a reply to my doubt/question... here it is:
If I connect a led on GPIO13, which is the pin index to use for pinMode() method??

I read some post where someone said to use 7 and other posts where someone said to use 13 because with the lastest version of libraries the number of GPIO and pin index have become the same value number.

So, to set GPIO13 as output what do I need to do?
Code: Select allpinMode(7, OUTPUT);

or
Code: Select allpinMode(13, OUTPUT);

??

Thanks :D
User avatar
By igrr
#33167 If you have a bare ESP12 module, pin numbers on the silkscreen match Arduino pin numbers (with an exception of GPIO 4&5, which are usually swapped on the silkscreen). So you can write pinMode(13, OUTPUT).

If you are using a NodeMCU board, you can also write pinMode(D7, OUTPUT).