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¶
- Completed the assembly and soldering of the Digit PCB
- Created a fork of the Kinetic-Display GitHub repository (see Software and Microcontroller Preparation)
- Deployed the
digit
directory (see Software and Microcontroller Preparation)
Configure and Deploy the Digit Project¶
- 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.
- 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.
- 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. - Create a New Terminal:
- (A) Click the ellipsis (
...
) in the terminal pane. - (B) Select Terminal -> New Terminal from the submenu.
- (A) Click the ellipsis (
- 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.
- 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.
Congratulations on successfully uploading the code to the digit PCB's Raspberry Pi Pico!