Installing WiringPi (and pin allocation) – Raspberry Pi
WiringPi is a library that is used by many applications on the Raspberry but is not available by default. Especially many examples from the Arduino (C ++ code) can be performed easily on the RaspberryPi. To do so, this valuable library was written.
sudo apt-get update && sudo apt-get upgrade
Now we need git:
sudo apt-get install git git-core
Now we need git: Now WiringPi can be downloaded and installed:
git clone git://git.drogon.net/wiringPi cd wiringPi ./build
git pull origin ./build
and the latest version is installed.
The pin assignment of wiringPi is not the same as that of the GPIOs.
To get information about your Raspberry Pi you can enter this command:
The easiest way to output the pin allocation is typing
because it is different on the various models.