ESPRUINO Pinout for NodeMCU v3 4M

Posted on
  • NODEMCU LED() - ESPRUINO(D2)
    NODEMCU A0 - ESPRUINO(D0)

    But other Ping where i get diagram ?

  • http://www.espruino.com/EspruinoESP8266 for diagram
    Google image search for esp8266 pinout for many many pinout diagrams that show the GPIO numbers, including ones that show them right next to the NodeMCU pin numbers. Espruino uses the GPIO number for the pins, ie, digitalWrite(D15,1) will write GPIO15 high. You can just pass the number to digitalWrite() too.

    http://www.espruino.com/Reference#NodeMC­U for a class to do the conversions for you.

    In Espruino, on the ESP8266, there's only one analog input. analogRead() reads from that input regardless of what argument you pass it.

    I have no idea what the NodeMCU people were thinking when they decided to renumber the pins. They also decided on Lua, so I'm not sure they were of sound mind in general.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

ESPRUINO Pinout for NodeMCU v3 4M

Posted by Avatar for Aleksandrs @Aleksandrs

Actions