You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BeagleBoard
I wrote a python program that uses one of the Beaglebone's PWM pins to control a servomotor. It also uses an LED output to indicate that the program is running. The program runs fine when I tell it to run. However, it's when I set it to automatically run at the Bone's startup that I have problems. I use the following steps to set the script to autostart:
1. Compile the program into a python object file
~# python -m py_compile file.py
2. Add the following line to the end of the file /etc/init.d/rc.local
python /root/file.pyc
3. Restart the Beaglebone
The program does not run at the start. I am using a Beaglebone running Debian Image 2015-11-12. Any help into this matter would be very appreciated. Here is all the relevant python code:
import Adafruit_BBIO.GPIO as GPIO import Adafruit_BBIO.PWM as PWM
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BeagleBoard
Tomas,
Did you try the Autorun directory in the Cloud9 IDE? Oh and that is an older distro. You can type sudo -i to get into root if you are not root already. One last thing...you may want to update your image and then use cron if possible. This is another option.
Seth
P.S. You can actually do a grab and drop in that IDE. Just grab the file(s) and drop them into your Autorun folder. I tried doing this a while back and it worked. If I come across the way to do it with Debian again, I will post again.
Tomas Medina
unread,
Aug 12, 2017, 1:10:18 PM8/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message