Installing the WiringPi library

Keyboard Shortcuts

WiringPi is an alternative to RPI.GPIO for identification of the Raspberry Pi GPIO pins, but requires installation. In this video, Mark Niemann-Ross steps through the installation process, using commands for GIT installation. Commands to confirm a successful installation are demonstrated, and then the Python wrapper installation process is demonstrated.

Depending on your network connection,…this may take a bit of time.…If you get any errors here,…make sure your Pi is up to date…with the latest versions of Raspbian.…To update Raspbian, type in…"sudo apt-get update",…and then type…"sudo apt-get upgrade".…Once the upgrade is finished,…I can now download WiringPi.…

The first thing I'm going to do…is clear the screen with Control L.…To obtain WiringPi using GIT,…I'll use the command "git clone"…followed by…"git://git.drogon.net/wiringPi".…Notice that "wiringPi" is spelled w-i-r-i-n-g, capital P, i.…Now, to build and install, there is a new simplified script.…

I'll change directory to the WiringPi directory:…"cd wiringPi",…then I'll type in "./build".…This runs a script that will install WiringPi.…This may take a moment for it to complete the compile run,…

Resume Transcript Auto-Scroll

Author

Released

5/13/2016

The Raspberry Pi talks to the outside world through the general-purpose input/output device, also known as the GPIO. This course describes these pins and explains how to use the GPIO to control lights and motors, read data from sensors, and interact with the Internet of Things. It combines some hardware basics—identifying pins and working with breadboards and components—with some programming in Python and Scratch. Author Mark Niemann-Ross also shows how to go deep into WiringPi, a GPIO access library, to experiment with pulse width modulation. By learning how to control input and output through GPIO pins, you'll open up a whole new world of electronics.