I really like how all the Adafruit boards start up a program when you turn them on like code.py.
Is there a simple way to do that when you boot up the Raspberry Pi? Maybe you can create some kind of a script that starts up a python program.
I have searched the Internet and tried some various ways but I can't get any of them to actually work?
Would really appreciate any help on this.
Thanks,
Tom Henry
Start up CircuitPython program on a Raspberry Pi
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Tom_Henry
- Posts: 350
- Joined: Wed Aug 26, 2020 8:19 pm
- adafruit_support_carter
- Posts: 29177
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Start up CircuitPython program on a Raspberry Pi
Check out this guide:
https://learn.adafruit.com/running-prog ... y-computer
Suggest using the systemd approach.
https://learn.adafruit.com/running-prog ... y-computer
Suggest using the systemd approach.
- Tom_Henry
- Posts: 350
- Joined: Wed Aug 26, 2020 8:19 pm
Re: Start up CircuitPython program on a Raspberry Pi
There has got to be an easier way to have your Raspberry Pi start up a Python program when starting up or rebooting.
I will keep looking and trying other ways to do this.
Thanks,
Tom Henry
I will keep looking and trying other ways to do this.
Thanks,
Tom Henry
- adafruit_support_carter
- Posts: 29177
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Start up CircuitPython program on a Raspberry Pi
There's an @reboot option you can try with cron. But not sure how universally supported that feature is.
Please be positive and constructive with your questions and comments.