ESP-01 D1 pinMode

Posted on
  • I'm not able to use pin D1 on my ESP8266 ESP-01 module. It's hooked up to the on-board LED, and I'd like to use it as a status indicator, but any attempts to read from or write to that pin cause Espruino to crash. All the other pins are working properly.

    Is this pin unavailable since it's connected to something else internally? Am I forgetting something simple?

    To reproduce the issue, simply connect to the blank ESP-01 and run

    digitalWrite(1,0);
    
  • Please Share the Espruino Version

  • Ok, please share wiring too

  • It's a bare ESP-01 module in a programmer adapter. No wiring, no code.

  • digitalWrite(D1,0)

  • That command works, in that it turns on the on-board LED, but after issuing that command, the entire board is unresponsive from the IDE.

  • Please a picture of the module.
    Is it like those, there is on those pages.
    https://www.espruino.com/EspruinoESP8266­
    https://www.espruino.com/ESP8266
    If it is, then D1 is tx out.

  • Better use D0 or D2 because D1 is used as TX

  • Ah, that would completely make sense that the IDE loses connectivity, in that case. Thanks for solving the mystery!

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

ESP-01 D1 pinMode

Posted by Avatar for OpenSourceTeacher @OpenSourceTeacher

Actions