简体   繁体   English

如何调整我的 Cape Manager 以不在 BeagleBone Black 上出现运行时错误?

[英]How Can I Adjust My Cape Manager to Not Get Runtime Errors on the BeagleBone Black?

I noticed that I keep getting a " Runtime Error: Problem with Cape Manager " when I run a specific piece of software on my BeagleBone Black .我注意到当我在我的BeagleBone Black上运行特定软件时,我不断收到“运行时错误:Cape Manager 问题”。 I have a RGB LED with four wires coming out of it and they are connected to my BBB via resistors and jumper wires.我有一个带有四根电线的 RGB LED,它们通过电阻器和跳线连接到我的 BBB。 How does my cape manager work and where can I find this information?我的 Cape Manager 是如何工作的,我在哪里可以找到这些信息? Where can I find info.我在哪里可以找到信息。 on how to change the Cape Manager and why would need to change the Cape Manager ?关于如何更改Cape Manager以及为什么需要更改Cape Manager The software is listed here:该软件在此处列出:

import Adafruit_BBIO.PWM as PWM
import time

red = "P8_13"
green = "P8_19"
blue = "P9_14"

PWM.start(red, 0)
PWM.start(blue, 0)
PWM.start(green, 0)

def fade(colorA, colorB, ignore_color):
    PWM.set_duty_cycle(ignore_color, 100)
    for i in range(0, 100):
        PWM.set_duty_cycle(colorA, i)
        PWM.set_duty_cycle(colorB, 100-i)
        time.sleep(0.05)

while True:
    fade(red, green, blue)
    fade(green, blue, red)
    fade(blue, red, green)

Now...现在...

I am running a Python program from Adafruit's website listed under their BeagleBone Black section of their site.我正在运行来自 Adafruit 网站的 Python 程序,该网站列在其网站的 BeagleBone Black 部分下。

I can change the /boot directory file uEnv.txt and get my software to work but when I reboot, the system does not arrive to be.我可以更改/boot目录文件uEnv.txt并让我的软件运行,但是当我重新启动时,系统无法正常运行。 It ceases.它停止了。 I cannot boot.我无法启动。

Is there a way to run this software after changing my /boot/uEnv.txt file and what would I need to change?有没有办法在更改我的/boot/uEnv.txt文件后运行该软件,我需要更改什么?

Seth赛斯

PS I am running a BeagleBoard.org Debian Image 2017-04-16. PS 我正在运行 BeagleBoard.org Debian Image 2017-04-16。 uname -a on the cmd line states: Linux beaglebone 4.4.61-ti-r98. cmd 行上的uname -a状态:Linux beaglebone 4.4.61-ti-r98。

Cape Manager is a thing of the past. Cape Manager 已成为过去。 u-boot overlays is used now and the sysfs and chardev directories are used instead.现在使用 u-boot 覆盖层,而是使用 sysfs 和 chardev 目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM