RE: The uEnv.txt File and Changing to "Have Full Control"

91 views
Skip to first unread message

Mala Dies

unread,
Apr 22, 2017, 12:28:41 AM4/22/17
to BeagleBoard
Hello,

How would I set "uenvcmd" to have full control?

Seth

P.S. I am asking because I set up a PWM script from an Adafruit software thing to run a Python program to fade a Diffused LED. I am getting some errors. The command line returns a RuntimeError. When I enable all comments in the /boot/uEnv.txt file, I get a system that is unresponsive when I reboot or shutdown and then boot. 

Mala Dies

unread,
Apr 22, 2017, 3:16:30 PM4/22/17
to BeagleBoard
Hello Again,

Maybe some extra input would help. I get RuntimeError: Problem with the Cape Manager, when I run:

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)

I have set cape_enable=bone_capemgr.enable_partno= to enable.

Seth

P.S. If you know of what mistake I am making in my setup of the BBB with regards to the Cape Manager, please try to explain or I will keep trying (as usual). Cool!

Mala Dies

unread,
Apr 24, 2017, 1:32:44 PM4/24/17
to BeagleBoard
Hello,

I found PWM(1A, 2B, 2A) to be well suited for the software on this discussion/question in the cape_mgr on my BBB. This is what I mean. I installed those PWM pins at cape_enable=bone_capemgr.enable_partno= to make it cape_enable=bone_capemgr.enable_partno=PWM1A, i.e. and etc. There is only one section listed for me to enable these pins.

I need three PWM pins available to run this software.

Seth

P.S. Any advice will be okay. I am going to try and run slots to see if I can add some PWM pins. 





On Friday, April 21, 2017 at 11:28:41 PM UTC-5, Mala Dies wrote:

Mala Dies

unread,
Apr 24, 2017, 1:37:01 PM4/24/17
to BeagleBoard
I get an error when I run slots:

sudo sh -c "echo 'PWM1A' > /sys/devices/platform/bone_capemgr/slots" is what I type in to get the new pin configured. My error is as follows: sh: echo: I/O error.

Seth

P.S. I am beat for now. I will get back to everyone soon. 
Reply all
Reply to author
Forward
0 new messages