graycatlabs / PyBBIO

A Python library for Arduino-style hardware IO support on the Beaglebone
https://github.com/graycatlabs/PyBBIO/wiki
MIT License
251 stars 89 forks source link

Analog In not recognized #102

Closed Crawforz closed 8 years ago

Crawforz commented 8 years ago

For some reason, whenever i try to use any of the analog in pins, it says it does not exist. The digital pins work just fine but cannot figure out why it's doing this, any help would be greatly appreciated.

alexanderhiam commented 8 years ago

That's odd... does it happen with the analog_test.py example program? If it's just your own code that's not working then post that here.

What image are you using? And what's the output of $ uname -a?

Crawforz commented 8 years ago

Yeah, it doesn't work in any program that references an analog pin; it just gives "Value Error: invalid GPIO pin". The disk image is the Wheezy debian image. The output for uname- a gives "Linux beaglebone 3.8.13-bone80".

thanks for the help!

Crawforz commented 8 years ago

oh wait! my bad, so i copied the program but didn't pay much attention to the set up and assumed that you had to identify the pin as an input (not sure why) and that must have messed it up cause it works now when i just do the "pass" keyword in the setup. Thanks! This actually still helped me to look at it again, sorry !

alexanderhiam commented 8 years ago

Glad you got it working!