I'm new to arduino and knnow nothing about electronics. How do I idenitify which pin is which in the coding? eg- I have a pin on my esp8266 "D3"... how would I reference that in the code?

  • You could try google search ...
    – MichaelT
    Dec 7 '18 at 11:16
  • You could either call it as just D3 in your code, or you could use the GPIO number which in this case is 0, do not get used to calling it Dx most boards are not capable of doing this
    – Coder9390
    Jul 26 at 11:41

If you select the right board in Tools menu, you can use constants corresponding to labels.

pinMode(D3, OUTPUT);
digitalWrite(D3, LOW);
  • 1
    and of course, you can google "nodemcu pinout" and you will find nice pictures with all pins specs
    – Juraj
    Dec 7 '18 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.