Tested on:Raspberry Pi 2, Raspbian pre Jessie, Python 2.7
Prerequisites:Raspbian Wheezy
Raspberry Pi with Raspbian Jessie(see steps 1-5 in the Introduction)
Shared internet connection (Ethernet)
0

PiGPIO for sudo-less GPIO for Raspbian Wheezy

In some cases it could be necessary to have GPIO-access without sudo on Raspbian Wheezy, the operating system before Raspbian Jessie, e.g. setting up voice control with the manual Jasper Installation, which is as of now more easy to install on Raspbian Wheezy.
For this task, there is a great library named pigpio (PiGPIO Website). Thanks to the developers!
The Raspberry Pi Foundation still offers Raspbian Wheezy for download; the installation and setup is similar to the Raspbian Jessie used in the Introduction.

Installation
Download and install the software with

PiGPIO usage
Before the GPIO can be used without sudo access, the pigpio deamon has to be started:

Now, all pins can be accessed with pigpio. The pins are identified by their Broadcom (GPIO) number. For a complete overview of the functions pigpio supports, checkout the PiGPIO Python function reference.

This is a runnable Python script for PiGPIO, which shows first how to setup pins and then how to read and write them with pigpio:

Links
PiGPIO Website: http://abyz.co.uk/rpi/pigpio/
PiGPIO function reference: http://abyz.co.uk/rpi/pigpio/python.html
Voice control with Jasper: http://www.knight-of-pi.org/jasper-manual-installation-on-a-raspberry-pi-2-and-raspbian-jessie
Raspbian Wheezy download: https://downloads.raspberrypi.org/raspbian/images/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.

Comment

Time limit is exhausted. Please reload CAPTCHA.