I managed to compile BBIO and before that I installed python2 packages.
Now there's a new problem, let's see following code


import Adafruit_BBIO.ADC as ADC


ADC.setup()
value = ADC.read("P8_36")
voltage = value * 1.8 #1.8V
print voltage

It should print the analog pin 5 value, but this error appears:
# python2 voltage.py 
Traceback (most recent call last):
  File "voltage.py", line 3, in <module>
    ADC.setup()
RuntimeError: Unable to setup ADC system. Possible causes are: 
  - A cape with a conflicting pin mapping is loaded 
  - A device tree object is loaded that uses the same name for a fragment:helper
 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to