Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO does not work after "bbio.pinMode" #95

Open
heylouiz opened this issue Jan 5, 2016 · 3 comments
Open

GPIO does not work after "bbio.pinMode" #95

heylouiz opened this issue Jan 5, 2016 · 3 comments

Comments

@heylouiz
Copy link

heylouiz commented Jan 5, 2016

I'm having a problem initializing a GPIO in Beagle Bone Black.

If I do this in the Python interpreter:

 bbio.pinMode(GPIO_PIN, bbio.OUTPUT)
 bbio.digitalWrite(GPIO_PIN, bbio.HIGH)

The GPIO does not respond to value variations.

But if i do this:

 bbio.pinMode(GPIO_PIN, bbio.OUTPUT)
 bbio.pinMode(GPIO_PIN, bbio.INPUT)
 bbio.pinMode(GPIO_PIN, bbio.OUTPUT)
 bbio.digitalWrite(GPIO_PIN, bbio.HIGH)

The GPIO starts to work normally.

This problem didn't occur in a older white Beagle Bone.

Any thoughts?

Thanks!

@GingerMuda
Copy link

It seems the guys who developed the library are not supporting it. Can you try the Adafruit BBIO, they can get your attention real quick.

@alexanderhiam
Copy link
Member

@GingerMuda there's only one of me, and I'm doing my best to support it. The library is open source, so any contributions are welcome, feel free to pick away at the issues if you'd like to help out...

@heylouiz which GPIO pin(s) is this happening with? Do you have the latest PyBBIO version installed? i.e.:

# pip install -U PyBBIO

@heylouiz
Copy link
Author

heylouiz commented Mar 1, 2016

@alexanderhiam I remember trying to update the software, so I believe it was the last pip version, I didn't tried to use the github version though..
I didn't investigate any further, cause the problem was solved using the workaround I described in the issue.
The GPIOs are GPIO2_22 and GPIO2_23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants