Nodemcu pin

hello ,

If i am using nodemcu esp8266 board and set on my blynk esp8266 as my device , what exactly this pin refare to ?

#define DHTPIN 2 // What digital pin we're connected to

the 2 here is the gpio 2 or it must refer to the digitals pin on the board D0,D2,…!

It’s the GPIO.

so my sensor in connected to D4 but in the program i write 2 , ok another question gpio is it a digital or analog read ?

Digital pin.

Google for your hardware.

1 Like