ESP12 GPIO vs pin index
Posted: Sat Oct 10, 2015 10:27 am
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?
or
??
Thanks
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 all
pinMode(7, OUTPUT);
or
Code: Select all
pinMode(13, OUTPUT);
??
Thanks