Jump to content
Sign in to follow this  
Rocko

Adafruit_BBIO installed, but not working

Recommended Posts

Hello,

I'm new here as well as new to the BeagleBone Black. I'm trying to setup and use the GPIO following the directions here:

https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/using-the-bbio-library

 

https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/gpio

 

I create a test.py file with the following code:

import Adafruit_BBIO.GPIO as GPIO
 
GPIO.setup("P8_10", GPIO.IN)


if GPIO.input("P8_10"):
        print("HIGH")
else:
        print("LOW")

When pin 8_10 is connected to ground, I get HIGH. When connected to VDC-9_32, I also get HIGH.  I tried this with a few other pins and they all have the same issue.

 

Am I doing anything incorrectly?

 

Share this post


Link to post
Share on other sites

Hello,

I'm new here as well as new to the BeagleBone Black. I'm trying to setup and use the GPIO following the directions here:

https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/using-the-bbio-library

 

https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/gpio

 

I create a test.py file with the following code:

import Adafruit_BBIO.GPIO as GPIO

Welcome the Beagle-Fu!

How are you running your py script?

 

Try as root. I'm on Ubuntu, so:

sudo python test.py

More information here:

https://github.com/adafruit/adafruit-beaglebone-io-python/issues/36

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×