Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

21 May, 2024: Computers section is temporarily disabled for maintenance. It will take several days before it's back.


computers / comp.sys.raspberry-pi / Python Autostart (Pico)

SubjectAuthor
* Python Autostart (Pico)F. W.
`* Re: Python Autostart (Pico)A. Dumas
 `- Re: Python Autostart (Pico)F. W.

1
Python Autostart (Pico)

<sltedr$frh$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3255&group=comp.sys.raspberry-pi#3255

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: me@home.com (F. W.)
Newsgroups: comp.sys.raspberry-pi
Subject: Python Autostart (Pico)
Date: Wed, 3 Nov 2021 08:40:42 +0100
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <sltedr$frh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 3 Nov 2021 07:40:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="139d9280d03e8385d41d4e3f5cc37a7c";
logging-data="16241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QHGqV8eQYanm87ptnInq4"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.1
Cancel-Lock: sha1:BhBLkyHYpYQZJmY9H8XfmgY3eUE=
Content-Language: de-DE
 by: F. W. - Wed, 3 Nov 2021 07:40 UTC

Hi,

(how) can I force the Pico to start my Python-program when connected?

FW (Python Beginner)

Re: Python Autostart (Pico)

<sltg0f$o3v$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3257&group=comp.sys.raspberry-pi#3257

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Python Autostart (Pico)
Date: Wed, 3 Nov 2021 09:07:43 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <sltg0f$o3v$1@dont-email.me>
References: <sltedr$frh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 3 Nov 2021 08:07:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8de52bd8e1a2bbcab3afbc36e15a5167";
logging-data="24703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uMM5OPYo4E64suSh+esto0jJzqkjG7rM="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.2.1
Cancel-Lock: sha1:w6jje1lgjMUMXeLooOYJrSEACKk=
In-Reply-To: <sltedr$frh$1@dont-email.me>
Content-Language: en-GB
 by: A. Dumas - Wed, 3 Nov 2021 08:07 UTC

On 03-11-2021 08:40, F. W. wrote:
> (how) can I force the Pico to start my Python-program when connected?

By saving it on the Pico as "main.py", it will run after every reset.
Using Thonny is the simplest way of uploading/editing/renaming files on
the Pico.

To set that up, see from page 17 in
https://hackspace.raspberrypi.com/books/micropython-pico (free pdf
download from there) although maddingly, the "main.py" fact isn't
mentioned anywhere in that book. It is on page 29 of the Python SDK doc:
https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-python-sdk.pdf

Re: Python Autostart (Pico)

<sltj8s$b4r$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3260&group=comp.sys.raspberry-pi#3260

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: me@home.com (F. W.)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Python Autostart (Pico)
Date: Wed, 3 Nov 2021 10:03:22 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <sltj8s$b4r$1@dont-email.me>
References: <sltedr$frh$1@dont-email.me> <sltg0f$o3v$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 3 Nov 2021 09:03:24 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="139d9280d03e8385d41d4e3f5cc37a7c";
logging-data="11419"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TbZPIKNwn9o5p0xqnrUMd"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.1
Cancel-Lock: sha1:FHd2r5Y+bXTIbK2/ADkotOlhZww=
In-Reply-To: <sltg0f$o3v$1@dont-email.me>
Content-Language: de-DE
 by: F. W. - Wed, 3 Nov 2021 09:03 UTC

Am 03.11.2021 um 09:07 schrieb A. Dumas:

> By saving it on the Pico as "main.py", it will run after every reset.
> Using Thonny is the simplest way of uploading/editing/renaming files on
> the Pico.

Very simple. Very good. I thank you! :-)

FW


computers / comp.sys.raspberry-pi / Python Autostart (Pico)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor