© 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 
(1)
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 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.