Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By keen4
#16960 I am looking for this table.
enum {
GPIO16 = 0;
GPIO5 = 1;
...
GPIO10 =12;
}
On link : https://github.com/nodemcu/nodemcu-firmware I cannot find it.
>> But then again, which break-out board are we talking about... I'd rather have those details not in this thread.
I understand you, but I have to ask somewhere. Thank you for your help, anyway ..
ESP8266 is the same on all Boards. Look: ESP8266 pin15 = GPIO0, if I have to set on/off this pin I have to send AT or Lua
instruction, there I have to enter number 3 not 15 no matter which board I have, I think so ..
Without table I can write anything ..
User avatar
By trackerj
#16965
keen4 wrote:I am looking for this table.
enum {
GPIO16 = 0;
GPIO5 = 1;
...
GPIO10 =12;
}
On link : https://github.com/nodemcu/nodemcu-firmware I cannot find it.
>> But then again, which break-out board are we talking about... I'd rather have those details not in this thread.
I understand you, but I have to ask somewhere. Thank you for your help, anyway ..
ESP8266 is the same on all Boards. Look: ESP8266 pin15 = GPIO0, if I have to set on/off this pin I have to send AT or Lua
instruction, there I have to enter number 3 not 15 no matter which board I have, I think so ..
Without table I can write anything ..


Sorry, I really want to help you so maybe I didn't understand exatcly what are you looking for:
- the GPIO TABLE (means IO Index -> GPIO pin)
or
- the relation between the ESP8266 Module pinout and GPIO?

In the first case, you can find it on https://github.com/nodemcu/nodemcu-firmware
For the second case: [url]http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family
[/url]
To make my days easier I have done for ESP07/12 a table with IO_Index <-> GPIO pin <-> Pinout , hanging on the wall. If this is what you need I can send it to you as soon as I will be back in my lab.
User avatar
By keen4
#17055 Hi,
Me again, as I explained: I am looking for the Index table, if I wish to write scripts I need it.. look this confusion:

// GPIO2
AT+CIOREAD =2 // AT-Commands for GPIO2
AT+CIOWRITE=2,0
AT+CIOWRITE=2,1

-- GPIO2
gpio.mode(4, gpio.OUTUT) // Lua code for GPIO2, GPIO2 Index=4
gpio.write(4, gpio.LOW)
gpio.write(4, gpio.HIGH)

In code, usually in *.h is something like this: #define GPIO2 4; #define GPIO0 3; etc..
I did not find index table, tons of infos are on web, everywhere, mixed, too much for a short time,
now I found it.. tnx anyway ..
User avatar
By trackerj
#17137 With the hope that will be useful, my wall-hanging GPIO pinout and NodeMCU New I/O TABLE ( Build 20141219 and later):


esp-07_12 - pinout - GPIO ALLOCATION.jpg



Please keep in mind that D0 -> GPIO16 can only be used as GPIO read/write only. No interrupt supported, No pwm/i2c supported.
You do not have the required permissions to view the files attached to this post.