Installing the wiringPi library in the Raspberry Pi

wiringPi is a pin-based GPIO access library that is written in C. Using this library, you can control the Raspberry Pi using C/C++ programming. The wiringPi library is easy to set up. Once installed, the Raspberry Pi GPIO pins will have wiringPi pin numbering. Let's take a look at how to download and install wiringPi:

  1. First, open the Terminal window by clicking on its icon from the taskbar:
  1. Before installing the wiringPi library, we first need to verify that our Raspberry Pi is up to date by checking for updates. If your Raspberry Pi is not updated, you may face errors while installing ...

Get Hands-On Robotics Programming with C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.