mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-11 15:40:26 +09:00
Fixed erroneous Python syntax, thanks Livio
This commit is contained in:
6
README
6
README
@@ -31,11 +31,11 @@ Class-based Usage:
|
|||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
import wiringpi2
|
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
|
OR
|
||||||
wiringpi2.wiringPiSetupSys // For /sys/class/gpio with GPIO pin numbering
|
wiringpi2.wiringPiSetupSys() // For /sys/class/gpio with GPIO pin numbering
|
||||||
OR
|
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):
|
Setting up IO expanders (This example was tested on a quick2wire board with one digital IO expansion board connected via I2C):
|
||||||
wiringpi2.mcp23017Setup(65,0x20)
|
wiringpi2.mcp23017Setup(65,0x20)
|
||||||
|
|||||||
Reference in New Issue
Block a user