Skip to content

Commit 673e5c5

Browse files
committed
Merge pull request #5 from duncanj/patch-1
Update README.md
2 parents 60d40d8 + a0b3242 commit 673e5c5

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
1-
21
WiringPi: 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
@@ -53,6 +64,8 @@ Usage:
5364
wiringpi.serialPuts(serial,"hello")
5465
wiringpi.serialClose(serial) // Pass in ID
5566

67+
5668
Full details at:
69+
5770
https://projects.drogon.net/raspberry-pi/wiringpi/
5871

0 commit comments

Comments
 (0)