Adafruit_BBIO.ADC.setup() on ubuntu 16.04.1 error

孤街浪徒 提交于 2019-12-25 04:12:18

问题


I installed the Adafruit_BBIO module on my BBB (I downloaded it from github and installed manually). The GPIO works just fine but when I try to use the ADC I get an error as follows:

import Adafruit_BBIO.ADC as ADC  
ADC.setup()

The error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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

I couldn't find an answer for this problem. Should I just use an older version of ubuntu?

Thanks!


回答1:


The problem was solved. You can fine the solution here: https://github.com/adafruit/adafruit-beaglebone-io-python/issues/127#issuecomment-266049880

In short, all you need to do is:

echo cape-universaln > /sys/devices/platform/bone_capemgr/slots


来源:https://stackoverflow.com/questions/41028021/adafruit-bbio-adc-setup-on-ubuntu-16-04-1-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!