Setup pins before uploading firmware

Issue #541 resolved
xixicarry created an issue

Hello John, I have a question for you: is it possible to set a pin high or low before uploading the firmware in PlatformIO?

Comments (4)

  1. John Maloney repo owner

    PlatformIO has no way to control most pins.

    However, I believe it uses ESPTool.py to load the .bin file onto the board. ESPTool.py uses the serial port handshaking lines DTR and RTS to put the ESP board into boot mode. The ESPTool connect sequence simulates holding down the boot button while toggling the reset button.

    I'm not sure exactly how the wiring is done. I'm guessing the USB-serial chip on the ESP32 board has output pins for DTR and RTS which are wired to the appropriate pins on the ESP module.

    Hope that info is of some help...

  2. John Maloney repo owner

    I hope I answered your question. Marking this resolved, but feel free to leave additional comments.

  3. Log in to comment