-
Notifications
You must be signed in to change notification settings - Fork 0
Writing Code
There are two ways to edit the code for the Raspberry Pis used with GW Robotics:
- Write the code directly on the Raspberry Pi
- Write the code elsewhere, then upload it to the Pi
Regardless of which method is chosen, you must first connect to the Raspberry Pi via an Ethernet cable. This page also has details on file transfer and internet connectivity.
This is the simplest process as it does not require file transfer. The Raspberry Pi for GW Robotics has Vi, Emacs, and Nano (and Ed if you really want to use that...) preinstalled. You can edit the code with whichever text editor you are familiar with.
There are two ways to do this, one for offline use and one for online use.
Connect to the Raspberry Pi using WinSCP (for Windows users), then drag and drop the entire project directory onto the Raspberry Pi. Select Yes to All when prompted to replace all same named files.
Connect to the Raspberry Pi to Internet using the steps linked above. On the computer the code was changed on, git commit and git push the changes to GitHub. On the Raspberry Pi, use git pull to update the project files.
Wiki maintained by Nam Tran (@omn0mn0m).