Developer Section: How to Build and Run the Photobooth

🛠️ Developer Section: How to Build and Run the Photobooth

  • Hardware connection:

  • Software Setup

    Prepare your build environment by follloing this guideline: using-docker-container.md.

  • How to build
    1. Install the usbipd-win. tool by: winget install usbipd

    2. On window terminal, share the ESP’s locally connected USB devices to other machines (VScode) by:

      $ usbipd list | grep JTAG | cut -d" " -f1
      # assume the above command output "2-3":
      $ usbipd attach --wsl --busid 2-3
      $ usbipd bind --busid 2-3
      

      One line version (need wsl or cygwin installed):

      FOR /F "delims=" %i IN ('usbipd list ^| grep JTAG ^| cut -d" " -f1') DO echo %i & usbipd attach --wsl --busid %i & usbipd bind --busid %i
      
    3. Open VScode, open local folder with dev container by command:

      "Dev Containers: Reopen Folder Locally"
      

      Configure the dev container as below:

      Configure extension
         -> Use existing config
         -> /opt/esp/config
      
    4. On VScode, type: Ctrl Shift P, type: “ESP-IDF: Build, Flash and Start a Monitor on your Device”

      Demo should start after that

      EW2024 Phototbooth