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

User avatar
By trackerj
#16869
eriksl wrote:On the esp8266 or on the break-out-board?
0 - GPIO16
1 - GPIO5
...
12 - GPIO10

But then again, which break-out board are we talking about... I'd rather have those details not in this thread.


This one it's not about the different Boards, it'a about how GPIO's are allocated in Firmware. Not very intuitive, I must admit :)

The example above is the latest list for NodeMCU firmware, hence also the link attached above, please take a look:
https://github.com/nodemcu/nodemcu-firmware
User avatar
By trackerj
#16916
eriksl wrote:I don't understand. Each GPIO pin has a definitive identication, it's hardware. If nodemcu uses ANOTHER mapping above that, all bets are off I guess.


It's just a remap in software, nothing fancy. GPIO0 remains GPIO0, etc offcourse.
But for some reasons known only by the developers of the firmware, they choose to declare and remap them like that. It's just la label, imagine them declared as I1, I2, etc...same abstract thing.
If anybody from that team is around, maybe we can obtain also a valid explanation why in that way and not another one. It's a little bit counterintuitive but...