I am having issues getting the GPIO library to work using the python. I have followed all the tutorials and double checked my code, so I decided to come here for help.
I have installed Ubuntu 12.04 Precise, and booting from the microsd card. I believe Adafruit_BBIO library itself has been installed correctly because my teammates have been able to successfully use UART and I2C (although, to get UART working my teammate has to run "echo ADAFRUIT-UART1 | sudo tee /sys/devices/bone_capemgr*/slots" at every bootup). I have made sure to run all install steps and all code as a super user, and have updated/upgraded the Adafruit library and the OS in general. At this point I'm sure it is something silly that I am forgetting.
Here is my tutorial-esque code that I cannot get working.
Code: Select all
import Adafruit_BBIO.GPIO as GPIO
import time
GPIO.setup("GPIO1_6", GPIO.OUT)
while True:
GPIO.output("GPIO1_6", GPIO.LOW)
time.sleep(1)
Other quirks I noticed. If I set it up as an input it will always read "0" no matter what voltage I put in.
I have worked on this all weekend and I am at a loss. It seems as if, so I'm assuming there is an important step I have forgotten. Any help will be appreciated.
Thank you