Deploy the Digit Project to the Digit PCB

In this guide you will upload code from the digit folder on your computer to your Raspberry Pi Pico 2040.

Prerequisites

Configure and Deploy the Digit Project

  1. Connect the Digit PCB: Connect your computer to the digit PCB's Raspberry Pi Pico as described in Verify Micropython on your Raspberry Pi Pico.
  2. Open the Deploy Folder:
    • In VS Code, select (A) File -> Open Folder....
    • (B) Navigate to the deploy/digit folder you deployed during step 4 in Fork and Clone the Repository.
    • (C) Click the "Select Folder" button.
      prereqsoftware-1.webp
  3. Update the digit.json File:
    • In the Explorer pane, click the Explorer icon (A) in the left Activity bar.
    • Open the digit.json file (B) and change the "digit": value (C) to match the PCB's labeled number (0-3).
    • Save the file after making changes.

    Warning

    Ensure the digit value in the digit.json file matches the PCB's labeled value to avoid incorrect behavior.

    testdigitpcb-2

  4. Create a New Terminal:
    • (A) Click the ellipsis (...) in the terminal pane.
    • (B) Select Terminal -> New Terminal from the submenu.
      testdigitpcb-3
  5. Select the MicroPico vREPL:
    • Connect your computer's USB port to the digit PCB's Raspberry Pi Pico.
    • In the terminal pane, (A) select the drop-down menu and (B) click the MicroPico vREPL submenu item.
      testdigitpcb-4
  6. Upload the Project:
    • Click All Commands (A) on the status bar.
    • In the Command text field (B), type "Upload" after "> MicroPico:".
    • Select the dropdown option MicroPico: Upload project to Pico.
      testdigitpcb-5

Congratulations on successfully uploading the code to the digit PCB's Raspberry Pi Pico!