Put a description for your project here! This repo is a template VS code project for CircuitPython projects that automatically uploads your code to the board when you press F5. Requires F5Anything extension.
This makes it easier to develop for boards like the Adafruit Metro Express and Raspberry Pi Pico by automatically uploading your code to the board's code.py
. No more worrying about if your latest changes got saved to Git, or switching to a new board and losing all your libraries!
- Make a GitHub account if you don't have one with your normal school credentials and sign into it.
- Click the big green Use This Template button at the top of this page.
- Name the new repository something appropriate to the purpose of your project (Your first one should probably be named
Engr3
). - Hit "Create repository from template." (The default settings should be fine.)
- Open VS Code on your machine. Click Clone Repository. If it doesn't show up, hit Ctrl+Shift+P and then type Clone, then hit Enter.
- Paste in the link to the new repository you've just created from the template and hit enter.
- For the location, Documents folder.
- Hit "Open Cloned Directory" in the bottom-left corner.
- Install the reccomended extensions when you get that popup in the lower right corner. IF the pop-up dissapears before you can click it, hit the tiny bell icon in the lower left corner to bring it back.
- Go to the little branch icon in the left bar of VS Code.
- Click the + icon next to the files you want to commit.
- Write a message that descibes your changes in the "Message" box and hit commit.
- If you get an error about user.name and user.email, see the next section.
- Click the "Sync changes" button.
- In VS Code, hit
Ctrl+Shift+`
- Filling in your actual information, run the following commands one line at a time. The paste shortcut is
Ctrl+V
or you can right click then hit paste. Spelling must match exactly:
git config --global user.name YOURGITHUBUSERNAME
git config --global user.email YOURSCHOOLEMAIL
- Return to the previous section.
- Get the library files from the Adafruit bundle (probably a .mpy file or a folder.)
- Copy them to the lib folder in your project's folder, usually in Documents. Don't copy to the lib folder on the board! It will not work!
- Hit F5 and the library will be uplaoded to the board.