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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...