Skip to content

Developing for the TurboPi

kenblu24 edited this page Oct 27, 2024 · 1 revision

We recommend you use Git. Git is version control software: It helps teams of people work on the same bits of code at the same time. With Git, two or more people can make modifications to a file, and Git can help reconcile them later. If you decide to use Git, you would be able to easily get updated code we put here on GitHub to your computer by running the command: git pull.

It's important to note the distinction between Git and GitHub: Git is the actual software that does the controlling of versions, and GitHub is where the collection of code, the 'repository', is stored. If you're interested in using Git, you can either download the command-line version, or, if typing commands isn't your thing, check out some GUI apps.

If you're still not sold, you can still just download zip files of the entire codebase. Either way, for step 1, head to the repository root page.
Double check that you're on the correct branch. Here it says main, but you might need to work on your own separate branch at some point. branch main Click the green code button and choose Download Zip, or copy the HTTPS link.

Find a good spot for your files, somewhere that you won't lose them. If you're using git, open a command window in the directory you want and do a git clone command like so:

C:\Users\you\Desktop> git clone https://github.com/kenblu24/GMU-ASRC.git

This will create a folder named GMU-ASRC on the desktop in this case, and download the repository into it.
If the code on GitHub changes, you can update the files by running:

C:\Users\you\Desktop\GMU-ASRC> git pull

Git will try to merge your changes, if any, with the new code.

If you are downloading the ZIP file, simply unzip the folder. You'll need to manually resolve any modifications you've made to previous copies you've worked on.

Either way, the code that belongs on the Pi itself resides in GMU-ASRC/hiwonder/turbopi/pi/

Clone this wiki locally