Start up CircuitPython program on a Raspberry Pi

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Tom_Henry
 
Posts: 350
Joined: Wed Aug 26, 2020 8:19 pm

Start up CircuitPython program on a Raspberry Pi

Post by Tom_Henry »

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

User avatar
adafruit_support_carter
 
Posts: 29177
Joined: Tue Nov 29, 2016 2:45 pm

Re: Start up CircuitPython program on a Raspberry Pi

Post by adafruit_support_carter »

Check out this guide:
https://learn.adafruit.com/running-prog ... y-computer

Suggest using the systemd approach.

User avatar
Tom_Henry
 
Posts: 350
Joined: Wed Aug 26, 2020 8:19 pm

Re: Start up CircuitPython program on a Raspberry Pi

Post by Tom_Henry »

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

User avatar
adafruit_support_carter
 
Posts: 29177
Joined: Tue Nov 29, 2016 2:45 pm

Re: Start up CircuitPython program on a Raspberry Pi

Post by adafruit_support_carter »

There's an @reboot option you can try with cron. But not sure how universally supported that feature is.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”