0

我在我的 BBB 上安装了 Adafruit_BBIO 模块(我从 github 下载并手动安装)。GPIO 工作得很好,但是当我尝试使用 ADC 时,我收到如下错误:

import Adafruit_BBIO.ADC as ADC  
ADC.setup()

错误:

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

我找不到这个问题的答案。我应该只使用旧版本的ubuntu吗?

谢谢!

4

1 回答 1

0

问题解决了。您可以在这里完善解决方案:https ://github.com/adafruit/adafruit-beaglebone-io-python/issues/127#issuecomment-266049880

简而言之,您需要做的就是:

echo cape-universaln > /sys/devices/platform/bone_capemgr/slots
于 2016-12-09T23:12:00.740 回答