From c710a81e7c20f2d3fc07248a37b3f738d9134d4a Mon Sep 17 00:00:00 2001 From: Omri Bahumi Date: Sat, 23 Nov 2013 17:04:00 +0200 Subject: [PATCH 1/3] Added WiringPi/wiringPi to extension include dirs --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 338eb2e..d847d91 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ _wiringpi2 = Extension( 'WiringPi/wiringPi/wiringShift.c', 'wiringpi_wrap.c' ], + include_dirs=["WiringPi/wiringPi"], ) setup( From ce887a369b97fe567f3e8eedfbc50a90e9887eca Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Wed, 11 Dec 2013 12:24:09 +0000 Subject: [PATCH 2/3] Added parenthesis onto setup functions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47630a1..f92ea19 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,11 @@ Description incoming! **Usage:** import wiringpi2 - wiringpi2.wiringPiSetup // For sequential pin numbering, one of these MUST be called before using IO functions + wiringpi2.wiringPiSetup() // For sequential pin numbering, one of these MUST be called before using IO functions OR - wiringpi2.wiringPiSetupSys // For /sys/class/gpio with GPIO pin numbering + wiringpi2.wiringPiSetupSys() // For /sys/class/gpio with GPIO pin numbering OR - wiringpi2.wiringPiSetupGpio // For GPIO pin numbering + wiringpi2.wiringPiSetupGpio() // For GPIO pin numbering Setting up IO expanders (This example was tested on a quick2wire board with one digital IO expansion board connected via I2C): From 6bb2ccff228f7b46eb9aaf624e8c4bb82277beb8 Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Sun, 29 Dec 2013 18:39:27 +0000 Subject: [PATCH 3/3] Updated README for clarity --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f92ea19..4d0fa0b 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,9 @@ Setting up IO expanders (This example was tested on a quick2wire board with one **General IO:** - wiringpi2.pinMode(1,1) // Set pin 1 to output - wiringpi2.digitalWrite(1,1) // Write 1 HIGH to pin 1 - wiringpi2.digitalRead(1) // Read pin 1 + wiringpi2.pinMode(6,1) // Set pin 6 to 1 ( OUTPUT ) + wiringpi2.digitalWrite(6,1) // Write 1 ( HIGH ) to pin 6 + wiringpi2.digitalRead(6) // Read pin 6 **Setting up a peripheral:** WiringPi2 supports expanding your range of available "pins" by setting up a port expander. The implementation details of