ubuntu 16.04.1上的Adafruit_BBIO.ADC.setup()错误 [英] Adafruit_BBIO.ADC.setup() on ubuntu 16.04.1 error

查看:216
本文介绍了ubuntu 16.04.1上的Adafruit_BBIO.ADC.setup()错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在BBB上安装了Adafruit_BBIO模块(我从github下载并手动安装)。
GPIO正常工作,但是当我尝试使用ADC时,出现如下错误:

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()

错误:

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吗?

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

谢谢!

推荐答案

问题已解决。
您可以在此处优化解决方案: https ://github.com/adafruit/adafruit-beaglebone-io-python/issues/127#issuecomment-266049880

总之,您需要

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

这篇关于ubuntu 16.04.1上的Adafruit_BBIO.ADC.setup()错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆