User Manual

19
If we want to operate Raspberry Pi GPIOs in C language based on the wiringPi library, choose
numbering appointed by wiringPi. You can see from the above diagram that GPIO0 in
wiringPi corresponds to pin 11 numbered by physical location, and GPIO30, to pin 27.
The picture below demonstrates the physical numbers of the three pins 11, 12, and 13 in detail:
If you are a C user, please install wiringPi.
WiringPi introduction:
WiringPi is a GPIO access library written in C for the BCM2835 used in the Raspberry Pi. It’s
released under the GNU LGPLv3 license and is usable from C and C++ and many other
languages with suitable wrappers. It’s designed to be familiar to people who have used the
Arduino "wiring" system.
How to install
Step 1: Get the source code of wiringPi
git clone git://git.drogon.net/wiringPi
Step 2: Install wiringPi
cd wiringPi
git pull origin
./build