File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change 1-
21WiringPi: An implementation of most of the Arduino Wiring
32 functions for the Raspberry Pi
43
5- Prerequisites:
6- You must have python-dev installed
7- If you manually rebuild the bindings with swig -python wiringpi.i
8- then cat wiringpi_class.py >> wiringpi.py to get the class-based wrapper
4+ ** Prerequisites:**
5+
6+ You must have python-dev installed
7+
8+ sudo apt-get install python-dev
9+
10+ If you manually rebuild the bindings with swig -python wiringpi.i
11+ then cat wiringpi_class.py >> wiringpi.py to get the class-based wrapper
912
10- Get/setup repo:
13+ ** Get/setup repo:**
14+
1115 git clone https://github.com/WiringPi/WiringPi-Python.git
16+
1217 cd WiringPi-Python
18+
1319 git submodule update --init
1420
15- Build & install with:
21+
22+ ** Build & install with:**
23+
1624 sudo python setup.py install
1725
18- Class-based Usage:
26+
27+ ** Class-based Usage:**
28+
1929 import wiringpi
2030 io = wiringpi.GPIO(wiringpi.GPIO.WPI_MODE_PINS)
2131 io.pinMode(1,io.OUTPUT)
@@ -32,7 +42,8 @@ Class-based Usage:
3242 serial.puts("hello")
3343 serial.close()
3444
35- Usage:
45+ ** Usage:**
46+
3647 import wiringpi
3748 wiringpi.wiringPiSetup // For sequential pin numbering, one of these MUST be called before using IO functions
3849 OR
5364 wiringpi.serialPuts(serial,"hello")
5465 wiringpi.serialClose(serial) // Pass in ID
5566
67+
5668Full details at:
69+
5770 https://projects.drogon.net/raspberry-pi/wiringpi/
5871
You can’t perform that action at this time.
0 commit comments