EasyManua.ls Logo

ADEEPT Ultimate Sensor Kit for Raspberry Pi - Raspberry Pi GPIO Library Introduction

ADEEPT Ultimate Sensor Kit for Raspberry Pi
151 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Raspberry Pi GPIO Library Introduction
Currently, there are two major GPIO libraries for Raspberry Pi: RPi.GPIO and
wiringPi.
RPi.GPIO:
RPi.GPIO is a python module to control Raspberry Pi GPIO channels. For more
information, please visit:
https://pypi.python.org/pypi/RPi.GPIO/
For examples and documentation:
http://sourceforge.net/p/raspberry-gpio-python/wiki/Home/
The RPi.GPIO module is pre-installed in the official Raspbian operating system,
thus you can use it directly.
wiringPi:
The wiringPi is a GPIO access library written in C language for BCM2835/6/7
SOC used in the Raspberry Pi. It’s released under the GNU LGPLv3 license and
usable from C and C++ and many other languages with suitable wrappers. It’s
designed familiar to people who have practiced the wiring system in the
Arduino software.
For more information about wiringPi, please visit: http://wiringpi.com/
Install wiringPi:
Step 1: Get the source code
$ sudo git clone git://git.drogon.net/wiringPi
Step 2: Compile and install
$ cd wiringPi
$ git pull origin
$ sudo ./build
Press Enter and the script build will automatically compile wiringPi source
code and then install it to the Raspberry Pi.

Table of Contents