Skip to content

Problem with GPIO #5

Description

@GeorgeJirka

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)
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions