© James R. Strickland 2018
James R. StricklandRaspberry Pi for Arduino Usershttps://doi.org/10.1007/978-1-4842-3414-3_5

5. Meet WiringPi

James R. Strickland1 
Highlands Ranch, Colorado, USA

So we have programs running on the Pi, and that’s a good thing. It’s really the key to the whole process, even if TicTac didn’t do more than play a simple screen game. For the Pi to do what Arduinos do, though, we need to be able to control their GPIO ports. For that, we’ll use the WiringPi library. It’s included in modern versions of Raspbian by default.

What Is WiringPi?

On the Arduino, you undoubtedly used the pin family of functions, like pinMode(pin), digitalRead(pin), and digitalWrite(pin,HIGH/LOW). Those come from a project called Wiring, originally written ...

Get Raspberry Pi for Arduino Users: Building IoT and Network Applications and Devices now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.