Nodemcu ESP8266 Pins Constants Integer values

ESP8266 Nodemcu Pins Constant Integer values for coding

ESP8266 NodeMCU is the smallest & cheapest IoT Development board. Price is only starting from $2. There are two chipset models available, one is CH340 and another one is CP2102. You can buy it from the following links.

Loading...

CH340 AliExpress Amazon
CP2102 AliExpress Amazon

When we write code in Arduino IDE we have to give pin name to set or low voltage operation.
For example, if we want to on or off relay using D0 pin, then we have to set digital write high for D0. This type of naming like D0, D1 is not supported for the ESP8266 library. NodeMCU supports the constant integer value of the pin numbers.

In the table below I have shared all the GPIO pin name and its corresponding integer value. When you will these pins, just initialize that pin name with its integer value at the top of the code.

Loading...

ESP8266 Pins Constants GPIO Pins

D0 16
D1 5
D2 4
D3 0
D4 2
D5 14
D6 12
D7 13
D8 15
D9 3
D10 1
Share
Tweet
Share
Pin it
Share
Share
Share
Share
0 0 votes
Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Get Instant Updates of New Posts

Join our Telegram Channel

JOIN NOW

Sign Up for Weekly Newsletter

Loading...
Related Posts
Our site uses cookies for a better experience. Read our Privacy Policy