Join Mark Niemann-Ross for an in-depth discussion in this video Using the exercise files, part of Raspberry Pi GPIO In Depth.
- [Voiceover] If you are watching this course on a computer, you have access to the exercise files for this course. You can download them and transfer them to your Raspberry Pi as I've done here. There's a folder for each video that uses a program so you can follow along. I've also included a reference sheet that details the various GPIO numbering schemes I will use throughout this course. If your Raspberry Pi has internet, an easier way to get the example files is to clone them from GitHub.
When I'm in the Raspberry Pi terminal, I first of all want to change to my Home directory by typing in cd. I'll need git, and if I don't have that yet, I'll type in sudu apt -git install git -all. This will run a series of commands that will install git. When the git installer finishes, git will be available for use. I want to install the exercise files on the Desktop, so I'll cd there now.
Once I'm on the Desktop, I can type in git clone git://github.com /mnr /RPi_GPIO This command will retrieve the files from the GitHub account and put them on the Desktop. RPi_GPIO is now available to me on the Desktop.
I want to rename that to Exercise Files. The easiest way to do that is to simply go to the Desktop, right-click on the folder, and use rename to Exercise Files. And now I have a folder full of Exercise Files for this course. If you're viewing this course on a mobile device, a set top device, or your membership doesn't provide access to the Exercise Files, that's okay.
You can still follow along by watching how I use these files.
- Locating the GPIO
- Programming with Python and Scratch
- Working with breadboards, jumpers, and components
- Building a simple GPIO project
- Identifying GPIO pins
- Using the WiringPi and RPi.GPIO libraries
- Accepting input
- Controlling output
- Using specialty pins: UART and I2C