-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi.
I use your library to control my GPIO on cubieboard2. And I try blink with led on PIN 32 (PD0). But LED don' t blinking.
I download your library: https://github.com/gootoomoon/WiringCB-python/archive/master.zip
And install: sudo python3 setup.py install # python 3.2.x
Any idea, wht is wrong?
`import wiringpi2
import time
OUTPUT = 1
pin = 32
HIGH = 1
LOW = 0
wiringpi2.wiringPiSetupPhys() # init pin to phy mode,U14(148) U15(4996)
wiringpi2.pinMode(pin,OUTPUT) # set pin 2 to output mode
while 1:
wiringpi2.digitalWrite(pin,HIGH) # Write HIGH to pin 2(U14 pin 2)
time.sleep(1)
wiringpi2.digitalWrite(pin,LOW) # Write LOW to pin
time.sleep(1)
`
Metadata
Metadata
Assignees
Labels
No labels