RPi.GPIO

From BananaPro/Pi
Jump to: navigation, search

The modified RPi.GPIO library for Banana Pro/Pi can be download from LeMaker github.

How to use RPi.GPIO on Banana Pro/Pi

Download

For Banana Pro:

git clone https://github.com/LeMaker/RPi.GPIO_BP -b bananapro


For Banana Pi:

git clone https://github.com/LeMaker/RPi.GPIO_BP -b bananapi

Installation

You need have the python-dev package:

sudo apt-get update
sudo apt-get install python-dev


Compile and install:

cd RPi.GPIO_BP
python setup.py install                 
sudo python setup.py install

Attention: you need install twice setup.py like above, first not using sudo.

After that, you can use the RPi.GPIO python script.