-->
Page 1 of 1

gpio map

PostPosted: Sun Feb 22, 2015 2:07 pm
by Peter
Hi,
from https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en#new_gpio_map I use
IO index ESP8266 pin
1 GPIO5
2 GPIO4

I make some test with G3MB-202P Solid State Relay. It works on my ESP-12 with NodeMCU 0.9.5 build 20150212. The output high Voltage is 3.2V and my relay switch on at 2.6V. But I have to use the index:
IO index ESP8266 pin
2 GPIO5
1 GPIO4
What is wrong?


Peter

Re: gpio map

PostPosted: Sun Feb 22, 2015 2:29 pm
by alonewolfx2
some esp-12 modules have issue for labeling for gpio4-5

Re: gpio map

PostPosted: Sun Feb 22, 2015 5:59 pm
by Peter
all my ESP-12 and also the ESP-07 modules have this pinout Image
only GPIO1 is not correct - it is GPIO2 .

Re: gpio map

PostPosted: Tue Feb 24, 2015 8:40 pm
by vowstar
Your ESP-12 have some mistake on bottom-overlay. The correct definition is as below:
20150225093711.png
Correct ESP-12

So you should swap GPIO4 and GPIO5.
See also:
https://github.com/nodemcu/nodemcu-devkit/blob/master/Documents/NODEMCU_DEVKIT_SCH_BIG.png