mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-04 14:10:36 +09:00
clarification of install instructions
This commit is contained in:
32
README.md
32
README.md
@@ -1,32 +1,36 @@
|
||||
#WiringPi 2 for Python
|
||||
#WiringPi for Python
|
||||
|
||||
WiringPi: An implementation of most of the Arduino Wiring
|
||||
functions for the Raspberry Pi
|
||||
|
||||
WiringPi version 2 implements new functions for managing IO expanders.
|
||||
WiringPi implements new functions for managing IO expanders.
|
||||
|
||||
##Testing
|
||||
Build with gcc version 4.6.3 (Debian 4.6.3-14+rpi1)
|
||||
Built against Python 2.7.2, Python 3.2.3
|
||||
|
||||
##Prerequisites
|
||||
You **must** have python-dev and python-setuptools installed
|
||||
If you manually rebuild the bindings with swig -python wiringpi.i
|
||||
|
||||
YOU MUST FIRST INSTALL WIRINGPI2!!
|
||||
```bash
|
||||
git clone git://git.drogon.net/wiringPi
|
||||
cd wiringPi
|
||||
sudo ./build
|
||||
```
|
||||
|
||||
##Get/setup repo
|
||||
```bash
|
||||
git clone https://github.com/WiringPi/WiringPi-Python.git
|
||||
git clone --recursive https://github.com/WiringPi/WiringPi-Python.git
|
||||
cd WiringPi-Python
|
||||
```
|
||||
|
||||
##Prerequisites
|
||||
To rebuild the bindings
|
||||
you **must** first have python-dev, python-setuptools and swig installed.
|
||||
```bash
|
||||
sudo apt-get install python-dev python-setuptools swig
|
||||
```
|
||||
|
||||
##Build WiringPi
|
||||
```bash
|
||||
cd WiringPi
|
||||
sudo ./build
|
||||
```
|
||||
|
||||
##Generate Bindings
|
||||
`swig2.0 -python wiringpi.i`
|
||||
or
|
||||
`swig3.0 -thread -python wiringpi.i`
|
||||
|
||||
##Build & install with
|
||||
|
||||
Reference in New Issue
Block a user