GPIO experiments on the Raspberry Pi
- One of RPi.GPIO, or
sudo pip install RPi.GPIO
- wiringPi
git clone git://git.drogon.net/wiringPi cd wiringPi sudo ./build
Then, the Python wrapper library, WiringPi-Python
sudo pip install wiringpi
Or, buid it from source:
git clone https://github.com/WiringPi/WiringPi-Python.git cd WiringPi-Python sudo git submodule update --init sudo python setup.py install
NOTE: wiringPi accesses the GPIO pins differently than RPi.GPIO, therefore, you can access the GPIO pins without root access with wiringPi.
e.g. sudo -u /usr/local/bin/gpio export out