Sample Arduino Code¶
We will be using an Arduino microcontroller to control the game hardware. Arduino programs are called ‘sketches’. The following examples will be used in the Arduino tutorials to introduce basic embedded programming techniques.
Project Git Repository¶
Students at Carnegie Mellon can clone the 2019 project code using git. To check
out the code on one of the IDeATe Dell laptops, run the Git GUI app and select
Clone Existing Repository
. For Source Location
, paste the following:
unix.andrew.cmu.edu:/afs/andrew/usr/garthz/git/SAMS/Carnegie-Wash
For Target Directory
, you’ll need to specify a name for the folder to
create, which is awkward; I suggest using the Browse
button to pick the
Desktop or Documents folder, accepting, then typing /Carnegie-Wash
at the
end of the path. Then click the Clone
button. You’ll have to enter your
Andrew password several times as it logs into the server via ssh to retrieve the
files.
If you prefer the command line git, please use the following:
git clone unix.andrew.cmu.edu:/afs/andrew/usr/garthz/git/SAMS/Carnegie-Wash