Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

I think we are in Rats' Alley where the dead men lost their bones. -- T.S. Eliot


comp / comp.lang.python / Re: new here

SubjectAuthor
* new hereDaniel
+* Re: new hereMRAB
|`- Re: new hereStefan Ram
+- Re: new hereStefan Ram
+* Re: new hererbowman
|+* Re: new hereDaniel
||+* Re: new heredn
|||`* Re: new hererbowman
||| `- Re: new hereGilmeh Serda
||+* Re: new hereJason Friedman
|||`- Re: new hereDaniel
||`* Re: new hererbowman
|| `* Re: new hereDaniel
||  `- Re: new hererbowman
|`* Re: new herePaul Rubin
| `* Re: new hererbowman
|  `* Re: new heredn
|   +* Re: new herePaul Rubin
|   |`* Re: new hererbowman
|   | `- Re: new heredn
|   `* Re: new hererbowman
|    +* Re: new here (Posting On Python-List Prohibited)Lawrence D'Oliveiro
|    |`- Re: new hereKeith Thompson
|    `* Re: new heredn
|     `* Re: new hererbowman
|      +* RE: new here<avi.e.gross
|      |`* Re: new hererbowman
|      | `* Re: new hereDaniel
|      |  `- Re: new hererbowman
|      +- Re: new hereMRAB
|      `- RE: new here<avi.e.gross
+* RE: new here<avi.e.gross
|`- Re: new hererbowman
+- Re: new here2QdxY4RzWzUUiLuE
+* Re: new heredn
|`* Re: new hereDaniel
| `- Re: new hererbowman
+- RE: new here<avi.e.gross
`- Re: new hereMarco Moock

Pages:12
Subject: Re: new here
From: rbowman
Newsgroups: comp.lang.python
Date: Fri, 23 Aug 2024 03:43 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: 23 Aug 2024 03:43:15 GMT
Lines: 76
Message-ID: <liqeqiFprmmU1@mid.individual.net>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 3AYh1luzoRaFbRJxAg86kQhIYgHNUyD+ox3/XH6B9W2kVimVA4
Cancel-Lock: sha1:bUrwn3XNa8h8zHT+rFlnWnWHsPk= sha256:uQ6s9CFP5le05q4HlJwoaNaSv399fHKCumj4ZbXRgU8=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Fri, 23 Aug 2024 08:36:02 +1200, dn wrote:

> On 23/08/24 07:49, rbowman via Python-list wrote:
>> On Thu, 22 Aug 2024 10:40:52 -0700, Paul Rubin wrote:
>>
>>> The Pico uses MicroPython which is stuck on an old version of Python,
>>> unfortunately.
>
> How did this enter the conversation/thread?
>
> Paul's 'contribution' does not even appear on the Archive...

I'm probably guilty. I mentioned in passing the older protocols like
finger could even be implemented on something like the Pico W with
MicroPython.

I am confused by the cross-over to Python-list. I only read/post to
comp.lang.python. Is that echoed to Python-list or vice versa?

>> I haven't worked with CircuitPython lately and don't know if it has
>> pulled in later features.
>
> Have you (gentle reader) used both and feel able to offer a comparison -
> when to prefer one over the other?

I've only used CircuitPython on the Adafruit Playground Express.

https://circuitpython.org/board/circuitplayground_express/

and MicroPython on the Pico W. Since then Adafruit has expanded their
collection of boards and support them with CircuitPython.

One difference that makes them hard to compare is the Express has quite a
few on-board sensors like the Arduino Nano Sense 33, and interfaces to
them are baked into CircuitPython.

The Pico W has a wealth of I/O most doubling as I2C, PWM, or A/D with only
a onboard LED for the mandatory 'hello world' blink code. MicroPython is
more generic and you may have to import modules for specific external
devices like the SSD1306 OLED display. That's easily done with Thonny or
pipkin.

As far as core Python I'd say they're similar. MicroPython is more generic
and may require more work to set up where Adafruit can match the boards
they have developed.

As I said it's been a while but MicroPython has the _threading module so
you can utilize both cores of the RP2040. Adafruit's new Feather has a
RP2040 and like the Pico W assumes you'll be using the PIO to externals
rather than anything onboard so CircuitPython probably has it.

https://www.adafruit.com/product/4884

From the horse's mouth:

"There is great C/C++ support, unofficial (but really good) Arduino
support, an official MicroPython port, and a CircuitPython port! We of
course recommend CircuitPython because we think it's the easiest way to
get started and it has support with most of our drivers, displays,
sensors, and more, supported out of the box so you can follow along with
our CircuitPython projects and tutorials."

I don't know if Adafruit has a RP2350 board yet but they say CircuitPython
will be even happier on the Pico 2.

https://www.adafruit.com/product/6006

For better or worse there are a lot more choices now than fiddling around
with the Arduino Uno back in the day.

Subject: Re: new here (Posting On Python-List Prohibited)
From: Lawrence D'Oliv
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Fri, 23 Aug 2024 03:55 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.python
Subject: Re: new here (Posting On Python-List Prohibited)
Date: Fri, 23 Aug 2024 03:55:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <va9179$phkc$1@dont-email.me>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Aug 2024 05:55:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d1d06bc57401ad85605fe276b9a12115";
logging-data="837260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3eNLpfk/Jl4ceRCyuN5Pi"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:WVuG5uYEnNaGSXFp8YjVqzDO+r8=
View all headers

On 23 Aug 2024 03:43:15 GMT, rbowman wrote:

> I am confused by the cross-over to Python-list. I only read/post to
> comp.lang.python. Is that echoed to Python-list or vice versa?

This has been happening, without asking our permission, for years.

Subject: Re: new here
From: dn
Newsgroups: comp.lang.python
Organization: DWM
Date: Fri, 23 Aug 2024 04:23 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonList@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: Fri, 23 Aug 2024 16:23:42 +1200
Organization: DWM
Lines: 113
Message-ID: <mailman.66.1724387030.2890.python-list@python.org>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de X8cfd4vrU4Z6dmJ2X9Xz9gL3V6loRPAwYyhRvXn7FrVQ==
Cancel-Lock: sha1:tw7LuK+ImNIYLiQvy0p2sodF/ok= sha256:GNuFZ75uoNk1SQxVgYP+BfdPD1WktuhSCyosKb5rQbU=
Return-Path: <PythonList@DancesWithMice.info>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=danceswithmice.info header.i=@danceswithmice.info
header.b=WLEUF+eJ; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'knows': 0.04; 'pycharm':
0.04; 'thread': 0.05; '(to': 0.07; 'assumes': 0.07; 'aug': 0.07;
'modules': 0.07; 'python.': 0.08; '-0700,': 0.09; '=dn': 0.09;
'comment,': 0.09; 'comparison': 0.09;
'from:addr:danceswithmice.info': 0.09; 'from:addr:pythonlist':
0.09; 'interfaces': 0.09; 'newsgroup': 0.09; 'pulled': 0.09;
'received:192.168.1.64': 0.09; 'support,': 0.09; 'import': 0.15;
'supported': 0.15; '"there': 0.16; '2024': 0.16; '>>>>': 0.16;
'adafruit': 0.16; 'arduino': 0.16; 'assuming': 0.16; 'assumption':
0.16; 'both.': 0.16; 'confused': 0.16; 'devices': 0.16; 'easiest':
0.16; 'finger': 0.16; 'frustration': 0.16; 'mandatory': 0.16;
'message-id:@DancesWithMice.info': 0.16; 'micropython': 0.16;
'onboard': 0.16; 'playground': 0.16; 'real-world,': 0.16;
'received:cloud': 0.16; 'received:rangi.cloud': 0.16; 'sensors,':
0.16; 'server,': 0.16; 'similar.': 0.16; 'stuck': 0.16;
'subject:here': 0.16; 'url-ip:104.21.37/24': 0.16; 'url:board':
0.16; 'versa?': 0.16; 'whichever': 0.16; 'whilst': 0.16; 'wrote:':
0.16; 'python': 0.16; 'code.': 0.17; 'probably': 0.17; 'uses':
0.19; 'thu,': 0.19; 'to:addr:python-list': 0.20; 'option': 0.20;
"i've": 0.22; 'fri,': 0.22; 'version': 0.23; 'run': 0.23; "i'd":
0.24; 'idea': 0.24; 'anything': 0.25; 'python,': 0.25; 'old':
0.27; 'done': 0.28; '>>>': 0.28; 'board': 0.28; 'sense': 0.28;
'thinking': 0.28; 'asked': 0.29; 'it,': 0.29; 'header:User-
Agent:1': 0.30; 'module': 0.31; 'header:Organization:1': 0.31;
'think': 0.32; "doesn't": 0.32; 'official': 0.32; 'question':
0.32; 'python-list': 0.32; 'received:192.168.1': 0.32; 'but':
0.32; "i'm": 0.33; 'there': 0.33; 'server': 0.33; 'able': 0.34;
'core': 0.34; 'header:In-Reply-To:1': 0.34; 'question.': 0.35;
'yes,': 0.35; 'display': 0.36; 'posts': 0.36; "skip:' 10": 0.37;
'really': 0.37; 'using': 0.37; "it's": 0.37; 'hard': 0.37;
'received:192.168': 0.37; 'way': 0.38; 'could': 0.38; 'thanks':
0.38; 'quite': 0.39; 'adding': 0.39; 'mentioned': 0.39; 'use':
0.39; 'url-ip:104.21/16': 0.61; 'utilize': 0.62; 'come': 0.62;
'follow': 0.62; 'feel': 0.63; 'great': 0.63; 'once': 0.63;
'professional': 0.63; 'our': 0.64; 'url:product': 0.64; 'his':
0.65; 'box': 0.65; 'earlier': 0.67; 'worked': 0.67; 'back': 0.67;
'more,': 0.67; 'that,': 0.67; 'day.': 0.68; 'compare': 0.69;
'older': 0.70; 'compared': 0.71; 'offer': 0.71; "you'll": 0.73;
'degree': 0.76; 'features.': 0.76; 'implemented': 0.76; 'life':
0.77; 'reply': 0.77; 'leads': 0.81; 'led': 0.81; 'paul': 0.81;
'biggest': 0.84; '(inside': 0.84; 'choices': 0.84; 'express.':
0.84; 'happier': 0.84; 'sensors': 0.84; 'thus,': 0.84; "world'":
0.84; 'hence,': 0.91; 'other?': 0.91
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 4B1856578
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1724387027;
bh=g9fxP4uRiz0j+sFT7Mzo+jKu7Y3k7y2Oe+SnzR1huQQ=;
h=Date:From:Subject:To:References:In-Reply-To:From;
b=WLEUF+eJfDgGqg0QLSYghdK0zqhF/5j/CvLIfjZ65RurupNiPnsow07VRYwW0HEhE
IECJr8F8zfhNsCgsFXM9k98klNUPNmIK/AswJzQP4wyJpHHyj1GDzkB1tH6RWU9LIR
JugA70qp2K6cAoOQTtZt/BC2b584tJxYeSujoZGzuO6uSCcu8PNr0MBNWI1BpMKDy5
kDzA+PrF7ZFYrzNCDVzRsKChaPBl9HFJ5jdTXcuVCn+hQUDJY6EzsbNrxnhfKj1rm4
F2Zj4EWiotu34s2VnXWNNN1bB/9kkWla7wbSL1XlRnfirGK+52wbFGKMpwHqdutTs9
fLEc6mQ9qJ6BA==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <liqeqiFprmmU1@mid.individual.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
X-Mailman-Original-References: <87ikvuzv8g.fsf@rpi3>
<liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
View all headers

On 23/08/24 15:43, rbowman via Python-list wrote:
> On Fri, 23 Aug 2024 08:36:02 +1200, dn wrote:
>> On 23/08/24 07:49, rbowman via Python-list wrote:
>>> On Thu, 22 Aug 2024 10:40:52 -0700, Paul Rubin wrote:
>>>
>>>> The Pico uses MicroPython which is stuck on an old version of Python,
>>>> unfortunately.
>>
>> How did this enter the conversation/thread?
>>
>> Paul's 'contribution' does not even appear on the Archive...
>
> I'm probably guilty. I mentioned in passing the older protocols like
> finger could even be implemented on something like the Pico W with
> MicroPython.

The question arose because his message doesn't appear either in the
conversation/email thread 'here', nor on the Archive. Perhaps not sent
to the list?

> I am confused by the cross-over to Python-list. I only read/post to
> comp.lang.python. Is that echoed to Python-list or vice versa?

As I understand it, posts to 'the list' may be made at comp.lang.python
or by email. Once on the server, messages are reflected back to both.
Thus, Thunderbird is not set-up to use the newsgroup and keeps
complaining at me when it's asked to reply to both. So, all
contributions (from me) enter the server via email.

>>> I haven't worked with CircuitPython lately and don't know if it has
>>> pulled in later features.
>>
>> Have you (gentle reader) used both and feel able to offer a comparison -
>> when to prefer one over the other?
>
> I've only used CircuitPython on the Adafruit Playground Express.
> https://circuitpython.org/board/circuitplayground_express/
> and MicroPython on the Pico W. Since then Adafruit has expanded their
> collection of boards and support them with CircuitPython.
>
> One difference that makes them hard to compare is the Express has quite a
> few on-board sensors like the Arduino Nano Sense 33, and interfaces to
> them are baked into CircuitPython.
>
> The Pico W has a wealth of I/O most doubling as I2C, PWM, or A/D with only
> a onboard LED for the mandatory 'hello world' blink code. MicroPython is
> more generic and you may have to import modules for specific external
> devices like the SSD1306 OLED display. That's easily done with Thonny or
> pipkin.

Adding a display to the Pico-W is my next project... After that, gyros
(am thinking it may not go so well, on balance... hah!).

The Pico-W impresses. Its built-in Wi-Fi/Bluetooth capability makes life
a lot easier (inside building use).

Apart from the earlier comment, my biggest frustration has come from the
lack of facilities in Thonny compared with PyCharm - but will pick-up
skills there, no doubt.

Conversely, (to having a separate radio-chip) I think I prefer the idea
of being able to connect the Pico to whichever sensor(s) is/are
actually-required. However, this is applied use - not learning or 'playing'.

> As far as core Python I'd say they're similar. MicroPython is more generic
> and may require more work to set up where Adafruit can match the boards
> they have developed.
>
> As I said it's been a while but MicroPython has the _threading module so
> you can utilize both cores of the RP2040. Adafruit's new Feather has a
> RP2040 and like the Pico W assumes you'll be using the PIO to externals
> rather than anything onboard so CircuitPython probably has it.
>
> https://www.adafruit.com/product/4884
>
> From the horse's mouth:
>
> "There is great C/C++ support, unofficial (but really good) Arduino
> support, an official MicroPython port, and a CircuitPython port! We of
> course recommend CircuitPython because we think it's the easiest way to
> get started and it has support with most of our drivers, displays,
> sensors, and more, supported out of the box so you can follow along with
> our CircuitPython projects and tutorials."

Whilst agreeing with the "easiest way to get started" claim, it probably
also leads to the assumption that it will (later) be easier to run out
of capability. Hence, that MicroPython would be the better professional
option - assuming one already knows Python.

Yes, a degree of 'comparing apples with oranges' - and a
continually-moving target!

> I don't know if Adafruit has a RP2350 board yet but they say CircuitPython
> will be even happier on the Pico 2.
> https://www.adafruit.com/product/6006

No, out in the real-world, the Pico 2 is still vaporware.

> For better or worse there are a lot more choices now than fiddling around
> with the Arduino Uno back in the day.

True.
Hence the question.
Thanks for the comments!

--
Regards,
=dn

Subject: Re: new here
From: rbowman
Newsgroups: comp.lang.python
Date: Fri, 23 Aug 2024 05:21 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: 23 Aug 2024 05:21:48 GMT
Lines: 26
Message-ID: <liqkjcFqt10U2@mid.individual.net>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net o+j8fHO8dFla1o80exaPbAYheCwavbBROXc5WZao5FCipvhi0P
Cancel-Lock: sha1:38F8eLW2OZIoBt0gmGJ9IZCMxhs= sha256:HtxHfpTJOKkl0rqXESNlCe2GAvz5fXIBtxtOLASBHws=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Fri, 23 Aug 2024 16:23:42 +1200, dn wrote:

> Adding a display to the Pico-W is my next project... After that, gyros
> (am thinking it may not go so well, on balance... hah!).

https://toptechboy.com/two-axis-tilt-meter-displaying-pitch-and-roll-
using-an-mpu6050-on-the-raspberry-pi-pico-w/

You might have to go back a lesson or two for the lead up. As he generally
says in the intro most of what he uses is from the Sunfounder Kepler kit.
It has a standard LCD display but he suggested buying the OLED separately
and used it for Lissajous patterns and other fancier stuff.

It's not a bad series although he can be long-winded and his Python style
definitely isn't PEP8 friendly.

https://toptechboy.com/

He switched to the Arduino Uno R4 after the IR controller/NeoPixel Pico
project and I don't know if he intends to go back to the Pico. He uses
Thonny but I use the MicroPython extension in VS Code. Lately I've been
using Code for everything. Mostly I work on Linux boxes but it's all the
same on Windows. There is a PlatformIO extension that works with Arduino
and other boards. PyLance upsets some because it's a MS product but it
works well too. I've used PyCharm and like it but I also work on C, .NET,
Angular, and other projects and Code gives me a uniform IDE.

Subject: Re: new here
From: rbowman
Newsgroups: comp.lang.python
Date: Fri, 23 Aug 2024 05:38 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: 23 Aug 2024 05:38:22 GMT
Lines: 22
Message-ID: <liqlieFqt10U3@mid.individual.net>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<87v7zsaqvd.fsf@nightsong.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net NyC/L+fdS96gkmr3brBoxwFTlsd3f6AWddi+63TxrDGKwtOl78
Cancel-Lock: sha1:WQyv4qHTrhPAdM0GO0/GGri0hpA= sha256:rHDYF3hLTBYibaCiEbllEVrrAZC/J8HaZ6nAkoEAfEs=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Thu, 22 Aug 2024 19:56:54 -0700, Paul Rubin wrote:

> With MicroPython on the Pico, you use some command line utility to
> transfer files instead, but it is no big deal.

Loading the UF2 is easy.

https://www.raspberrypi.com/documentation/microcontrollers/
micropython.html

I use VS Code with the MicroPython extension so when the board is plugged
in it shows up as ttyACM0 or COM something I think on Windows. If you need
a package for a peripheral the file structure on the actually device shows
up so you can copy it to the lib directory.

https://pypi.org/project/pipkin/

pipkin is the command line utility. Thonny isn't my favorite IDE but it
does make life easy:

https://projects.raspberrypi.org/en/projects/getting-started-with-the-
pico/2

Subject: Re: new here
From: Marco Moock
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Fri, 23 Aug 2024 13:09 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: Fri, 23 Aug 2024 15:09:06 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vaa1lk$tgpn$2@dont-email.me>
References: <87ikvuzv8g.fsf@rpi3>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Aug 2024 15:09:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9d749ed5b48964ec45acbf45946c716c";
logging-data="967479"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18D9BQWe//5aU9QyQQZQnYI"
Cancel-Lock: sha1:6xDxcr4MUCr79FWPKbm5OZpmk+I=
In-Reply-To: <87ikvuzv8g.fsf@rpi3>
View all headers

On 20.08.2024 um 23:26 Uhr Daniel wrote:

> New here. I've perused some posts and haven't seen a posting FAQ for
> this NG. I'm learning python right now to realize some hobby goals I
> have regarding some smolnet services. What are the NG standards on
> pasting code in messages? Do yall prefer I post a pastebin link if
> it's over a certain number of lines? I know this isn't IRC - just
> asking.

Welcome!

Pastebin and other stuff has the disadvantage that the content might be
removed later.

What about pasting it under your actual message if it is really too
long?

--
kind regards
Marco

Subject: Re: new here
From: Keith Thompson
Newsgroups: comp.lang.python
Organization: None to speak of
Date: Sat, 24 Aug 2024 23:04 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: Sat, 24 Aug 2024 16:04:47 -0700
Organization: None to speak of
Lines: 16
Message-ID: <87ttf9frow.fsf_-_@nosuchdomain.example.com>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net> <va9179$phkc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sun, 25 Aug 2024 01:04:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="40ee2afb4f283fffad3dfce85eeabfde";
logging-data="1654212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+x6k8Sa+Q9rIJ/B8g5xIxq"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:lPoiiu78uYlCESYFj3aLVGGTQ7w=
sha1:TUVnLnj9miQM7IZVCZCrsYmwVNQ=
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On 23 Aug 2024 03:43:15 GMT, rbowman wrote:
>> I am confused by the cross-over to Python-list. I only read/post to
>> comp.lang.python. Is that echoed to Python-list or vice versa?
>
> This has been happening, without asking our permission, for years.

The comp.lang.python newsgroup and the Python-list mailing list
are bidirectionally gatewayed. Both are public. Why is that a
problem for you? Whose permission do you think is needed?

https://mail.python.org/mailman/listinfo/python-list

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Subject: RE: new here
From: <avi.e.gross@gmail.com>
Newsgroups: comp.lang.python
Date: Mon, 26 Aug 2024 01:29 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: <avi.e.gross@gmail.com>
Newsgroups: comp.lang.python
Subject: RE: new here
Date: Sun, 25 Aug 2024 21:29:30 -0400
Lines: 45
Message-ID: <mailman.1.1724635772.2917.python-list@python.org>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de jK25pabzb4vIaV/SHG8A6QLQmbr4UQA7T38Q2SojimHw==
Cancel-Lock: sha1:x9jDJvMR7K7fvoP8t33ylP0wZf0= sha256:dxV9h0ZQ3fr3qhT95ZDY+gi24MuZH2nPtuM2kNq3iZo=
Return-Path: <avi.e.gross@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=Fz7qvezq;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.020
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'pycharm': 0.04; 'aug':
0.07; 'environments': 0.09; 'linux': 0.09; 'smaller': 0.09;
'uniform': 0.09; 'url:mailman': 0.15; '2024': 0.16; 'arduino':
0.16; 'friendly.': 0.16; 'intro': 0.16; 'lesson': 0.16;
'micropython': 0.16; 'pardon': 0.16; 'patterns': 0.16;
'separately': 0.16; 'subject:here': 0.16; 'them?': 0.16;
'windows.': 0.16; 'wrote:': 0.16; 'python': 0.16; 'says': 0.17;
'code.': 0.17; 'message-id:@gmail.com': 0.18; 'uses': 0.19;
'to:addr:python-list': 0.20; "i've": 0.22; 'fri,': 0.22;
'purposes': 0.22; 'code': 0.23; 'laptop': 0.23; 'skip:- 10': 0.25;
'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'extension': 0.25; 'url:listinfo': 0.25; 'url-ip:188.166/16':
0.25; 'friday,': 0.26; "isn't": 0.27; 'mostly': 0.28; 'series':
0.28; 'thinking': 0.28; 'url-ip:188/8': 0.31; 'everyone': 0.32;
'python-list': 0.32; 'but': 0.32; 'there': 0.33; 'same': 0.34;
'mean': 0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com':
0.34; 'definitely': 0.35; 'from:addr:gmail.com': 0.35; 'display':
0.36; 'people': 0.36; 'using': 0.37; "it's": 0.37; 'read': 0.38;
'two': 0.39; 'adding': 0.39; 'ago': 0.39; 'use': 0.39;
'received:100': 0.39; 'from:': 0.62; 'to:': 0.62; 'gives': 0.62;
'here': 0.62; 're:': 0.64; 'his': 0.65; 'well': 0.65; 'lead':
0.67; 'back': 0.67; 'bad': 0.67; 'generally': 0.67; 'that,': 0.67;
'too.': 0.70; 'url-ip:208/8': 0.71; 'product': 0.71; 'deal': 0.73;
'price': 0.75; 'sent:': 0.78; 'ages': 0.84; 'intends': 0.84;
'lcd': 0.84; 'skip:u 40': 0.84; 'url-ip:208.109/16': 0.84;
'buying': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1724635770; x=1725240570; darn=python.org;
h=content-language:thread-index:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=lb3lvuzEl6upYe2SBEVckSHYBfWgkipa+KE04+c/T3w=;
b=Fz7qvezq+79NTEJnUN/8rSwpRO4Xvt4fLEAjBu4xYj4g7kqZocjlLQtsu4dOtkS3pP
S16ZdmbkuMT0U/anjhrYIxsJz2wkOB8H3l0A/O2ucK74KbvR3tkzuHwBlsDOoM4Q2bxb
0VO9ozIBLPCPnBD/h7Qj6vtIMfJCVvNWBkl2c2tNMMS3F+y0eQseR3+zDOjAt4m6ZIjb
FEY9ucdTYbBVI8pt65SCatDW0nWAsgYT0H56nNDtJqXqE3EXksOM9yI8QJtzrAwLaFK7
eIVYPYyMV9u1X+058RZgaHwQeBZuztDeGrE5E9rCgX+XRe8UuMS5k8OIz2XBNHplQ2BX
SAOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1724635770; x=1725240570;
h=content-language:thread-index:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=lb3lvuzEl6upYe2SBEVckSHYBfWgkipa+KE04+c/T3w=;
b=AayZvtU3mP4fFdGbEk0dIJM7+gJgpM7MBN7tC0MGokWgyKMYJKbrEb4h8GhRNqli5t
CIu7SaJ/ZVL0b9AfqrklHOoG+AL0k2IcTEnEKTVFQ2TkIxdEZDl1TYAlffpYbTDdWFal
1BgbRanhjbqmW/lxqcJVkSQRFJ79PxV4bRLDfPbPCRtaz7gdxUquf6pZWlXr6ybGxMLj
X2ZUhLWl7Eliw1Unz5ADSqVi6/muqQcQvMC6y61KlxGsrbLDwryYYhCRnk62y0O2sVkV
ix4GEv+/zHMMwu0O9xLMPuB5ezu400fgtWNr3J9Vqo0Ii06G2CvUWBVkDBT68jHMLhJW
6y3A==
X-Forwarded-Encrypted: i=1;
AJvYcCUoI38EslhzbJgo4BFVrtmKM6S1p+y1m68JANfclfstMC8rNCv2IJN1vJgEkYAAZDExbPkjrRSu70Vc3Q==@python.org
X-Gm-Message-State: AOJu0YzHIQDMyfAUmVuyAr/mLdmVHfvbhXyxKBKTR2oNr4T7Yrhuuq6i
Ux6h8nGDlGjGzFlh/uUE2sHQdXpnSKM7jATOYof0hoFiFT3D2cMX
X-Google-Smtp-Source: AGHT+IHK/boUkiuTAfF1Mgvfwb9o4vorJCdF7Y/ymxDA0iwJ5UUlNJp+TknCueFI6lacod9tsvFjAg==
X-Received: by 2002:a05:6122:3112:b0:4ed:145:348f with SMTP id
71dfb90a1353d-4fd1a809b01mr10691220e0c.12.1724635770296;
Sun, 25 Aug 2024 18:29:30 -0700 (PDT)
In-Reply-To: <liqkjcFqt10U2@mid.individual.net>
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQD0xJz3Kom1iv7hvEmPsjAD/TXACgHGu/fiAUzhN0QC3IE/+wKjQgw/AstKOOUCB3VA7QIPhI89AiOArJQAlySa67NzotZA
Content-Language: en-us
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <009a01daf757$663b2ae0$32b180a0$@gmail.com>
X-Mailman-Original-References: <87ikvuzv8g.fsf@rpi3>
<liktbqFgjfU2@mid.individual.net> <87zfp4bgm3.fsf@nightsong.com>
<lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
View all headers

If everyone will pardon my curiosity, who and what purposes are these
smaller environments for and do many people use them?

I mean the price of a typical minimal laptop is not a big deal today. So are
these for some sort of embedded uses?

I read about them ages ago but wonder ...

-----Original Message-----
From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On
Behalf Of rbowman via Python-list
Sent: Friday, August 23, 2024 1:22 AM
To: python-list@python.org
Subject: Re: new here

On Fri, 23 Aug 2024 16:23:42 +1200, dn wrote:

> Adding a display to the Pico-W is my next project... After that, gyros
> (am thinking it may not go so well, on balance... hah!).

https://toptechboy.com/two-axis-tilt-meter-displaying-pitch-and-roll-
using-an-mpu6050-on-the-raspberry-pi-pico-w/

You might have to go back a lesson or two for the lead up. As he generally
says in the intro most of what he uses is from the Sunfounder Kepler kit.
It has a standard LCD display but he suggested buying the OLED separately
and used it for Lissajous patterns and other fancier stuff.

It's not a bad series although he can be long-winded and his Python style
definitely isn't PEP8 friendly.

https://toptechboy.com/

He switched to the Arduino Uno R4 after the IR controller/NeoPixel Pico
project and I don't know if he intends to go back to the Pico. He uses
Thonny but I use the MicroPython extension in VS Code. Lately I've been
using Code for everything. Mostly I work on Linux boxes but it's all the
same on Windows. There is a PlatformIO extension that works with Arduino
and other boards. PyLance upsets some because it's a MS product but it
works well too. I've used PyCharm and like it but I also work on C, .NET,
Angular, and other projects and Code gives me a uniform IDE.
--
https://mail.python.org/mailman/listinfo/python-list

Subject: Re: new here
From: dn
Newsgroups: comp.lang.python
Organization: DWM
Date: Mon, 26 Aug 2024 02:00 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonList@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: Mon, 26 Aug 2024 14:00:56 +1200
Organization: DWM
Lines: 31
Message-ID: <mailman.4.1724637669.2917.python-list@python.org>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<87v7zsaqvd.fsf@nightsong.com> <liqlieFqt10U3@mid.individual.net>
<6febb3bc-791f-4d9b-80e5-12aa2bd4cbd4@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de HHj6D/PbujhZ/FXUFfmrEQz2N+2MQjCXrvKbioffn9+w==
Cancel-Lock: sha1:KkgUsXOhgMBR1F04XUzZ59AyPVQ= sha256:mNATKtHyuJEsEuuRyY+1NQ5M7CMyT2NMG3SwY5+wGAk=
Return-Path: <PythonList@DancesWithMice.info>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=danceswithmice.info header.i=@danceswithmice.info
header.b=niWmT2YB; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'aug': 0.07; '-0700,':
0.09; '=dn': 0.09; 'from:addr:danceswithmice.info': 0.09;
'from:addr:pythonlist': 0.09; 'url-ip:151.101.0.223/32': 0.09;
'url-ip:151.101.128.223/32': 0.09; 'url-ip:151.101.192.223/32':
0.09; 'url-ip:151.101.64.223/32': 0.09; 'utility': 0.09; '2024':
0.16; 'directory.': 0.16; 'message-id:@DancesWithMice.info': 0.16;
'micropython': 0.16; 'peripheral': 0.16; 'received:51.254': 0.16;
'received:51.254.211': 0.16; 'received:51.254.211.219': 0.16;
'received:cloud': 0.16; 'received:rangi.cloud': 0.16;
'subject:here': 0.16; 'url-ip:104.22.0/24': 0.16; 'url-
ip:104.22.1/24': 0.16; 'url:documentation': 0.16; 'url:project':
0.16; 'url:pypi': 0.16; 'windows.': 0.16; 'wrote:': 0.16; 'thu,':
0.19; 'to:addr:python-list': 0.20; 'code': 0.23; 'command': 0.23;
'(and': 0.25; 'extension': 0.25; "isn't": 0.27; 'board': 0.28;
'ideas': 0.28; 'header:User-Agent:1': 0.30;
'header:Organization:1': 0.31; 'think': 0.32; 'python-list': 0.32;
'structure': 0.32; 'received:192.168.1': 0.32; 'but': 0.32;
'there': 0.33; 'package': 0.34; 'header:In-Reply-To:1': 0.34;
'files': 0.36; 'received:192.168': 0.37; 'file': 0.38; 'thanks':
0.38; 'use': 0.39; 'appears': 0.40; 'ide': 0.40; 'something':
0.40; 'url-ip:104.21/16': 0.61; 'url-ip:151.101.0/24': 0.62; 'url-
ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24': 0.62; 'url-
ip:151.101.64/24': 0.62; 'copy': 0.63; 'favorite': 0.64;
'received:51': 0.64; 'shows': 0.67; 'transfer': 0.69; 'instead,':
0.70; 'life': 0.77; 'paul': 0.81; 'delays': 0.84; 'earlier)':
0.84; 'easy.': 0.84; 'url-ip:104.21.88/24': 0.84
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 31590571E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1724637661;
bh=OxWZdEqoZi5CLnfn8KOaQfK1LtZ8rRVUOIpq9hMTAQ0=;
h=Date:From:Subject:To:References:In-Reply-To:From;
b=niWmT2YBBh9aOdARx0qiVGWYCcu+tUFg33ek8XhAzxyR7JKyQ5Ya09runDFUy+Zy9
0KvCLzrkF2uxQ4bcf8yDnKYI6vgY9d/MrDbdJ63GbfrglJt4t8E+WKNqiR9L2uaDrI
HYkcT+f00YDX3OflCrYsZ2JbuegHXQd37gGpTJwqnWBYQYkN/DAwfAjv5BnhSLiUd7
mZdyGIwdZ/uXMEs6Yh80xZlj6TFss0MGfXtRKgVh4cj5od/kGrvltBlL9qUq7fWM77
X69Xkw4EWT2UOfwNIiWMz00vwqSG/K1xVQrYxngZn5vvUwbxCyg00GZdD4r/T2T4q0
OvNSSkQpmztvQ==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <liqlieFqt10U3@mid.individual.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <6febb3bc-791f-4d9b-80e5-12aa2bd4cbd4@DancesWithMice.info>
X-Mailman-Original-References: <87ikvuzv8g.fsf@rpi3>
<liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<87v7zsaqvd.fsf@nightsong.com> <liqlieFqt10U3@mid.individual.net>
View all headers

It appears there were some delays in the email/servers.
Thanks for this (and earlier) ideas and advice!

On 23/08/24 17:38, rbowman via Python-list wrote:
> On Thu, 22 Aug 2024 19:56:54 -0700, Paul Rubin wrote:
>
>> With MicroPython on the Pico, you use some command line utility to
>> transfer files instead, but it is no big deal.
>
> Loading the UF2 is easy.
>
> https://www.raspberrypi.com/documentation/microcontrollers/
> micropython.html
>
> I use VS Code with the MicroPython extension so when the board is plugged
> in it shows up as ttyACM0 or COM something I think on Windows. If you need
> a package for a peripheral the file structure on the actually device shows
> up so you can copy it to the lib directory.
>
> https://pypi.org/project/pipkin/
>
> pipkin is the command line utility. Thonny isn't my favorite IDE but it
> does make life easy:
>
> https://projects.raspberrypi.org/en/projects/getting-started-with-the-
> pico/2

--
Regards,
=dn

Subject: Re: new here
From: MRAB
Newsgroups: comp.lang.python
Date: Mon, 26 Aug 2024 02:05 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: python@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: Mon, 26 Aug 2024 03:05:29 +0100
Lines: 47
Message-ID: <mailman.5.1724637932.2917.python-list@python.org>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
<f1fb8308-9f9b-49d9-b482-22d0885b7d4b@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de NUUgtJcKiC3WFWpEh5JRBAZz/WKpHV6Q1zpycl0izJeA==
Cancel-Lock: sha1:TyR3P3lv7pm5o+g4fgKwv4qMG8c= sha256:OvmpHESGV56Zo8PNNev1523X9g7pfmMRziUobbowOYg=
Return-Path: <python@mrabarnett.plus.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=plus.com header.i=@plus.com header.b=ooIMLEEW;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.010
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'pycharm': 0.04; 'aug':
0.07; 'environments': 0.09; 'from:addr:python': 0.09; 'linux':
0.09; 'raspberry': 0.09; 'received:192.168.1.64': 0.09; 'smaller':
0.09; 'uniform': 0.09; '2024': 0.16; 'arduino': 0.16; 'avi': 0.16;
'friendly.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16;
'from:name:mrab': 0.16; 'gross': 0.16; 'intro': 0.16; 'lesson':
0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'micropython':
0.16; 'pardon': 0.16; 'patterns': 0.16; 'received:plus.net': 0.16;
'separately': 0.16; 'subject:here': 0.16; 'them?': 0.16;
'windows.': 0.16; 'wrote:': 0.16; 'python': 0.16; 'says': 0.17;
'code.': 0.17; 'uses': 0.19; 'to:addr:python-list': 0.20; "i've":
0.22; 'fri,': 0.22; 'purposes': 0.22; 'code': 0.23; 'laptop':
0.23; 'skip:- 10': 0.25; 'extension': 0.25; 'friday,': 0.26;
"isn't": 0.27; 'mostly': 0.28; 'purpose': 0.28; 'series': 0.28;
'thinking': 0.28; 'header:User-Agent:1': 0.30; 'everyone': 0.32;
'python-list': 0.32; 'received:192.168.1': 0.32; 'but': 0.32;
'there': 0.33; 'same': 0.34; 'mean': 0.34; 'header:In-Reply-To:1':
0.34; 'definitely': 0.35; 'display': 0.36; 'people': 0.36;
'using': 0.37; "it's": 0.37; 'received:192.168': 0.37; 'read':
0.38; 'two': 0.39; 'adding': 0.39; 'enough': 0.39; 'ago': 0.39;
'use': 0.39; 'from:': 0.62; 'to:': 0.62; 'gives': 0.62; 'lower':
0.62; 'received:212': 0.62; 'here': 0.62; 're:': 0.64; 'his':
0.65; 'well': 0.65; 'less': 0.65; 'lead': 0.67; 'back': 0.67;
'bad': 0.67; 'generally': 0.67; 'that,': 0.67; 'too.': 0.70; 'url-
ip:208/8': 0.71; 'product': 0.71; 'deal': 0.73; 'costs': 0.74;
'price': 0.75; 'sent:': 0.78; 'ages': 0.84; 'intends': 0.84;
'lcd': 0.84; 'skip:u 40': 0.84; 'url-ip:208.109/16': 0.84;
'buying': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1724637930; bh=fU2/dvHULX7lPfeq0J7jNE1XQyi/tQRx+sqzU6qOoHk=;
h=Date:Subject:To:References:From:In-Reply-To;
b=ooIMLEEWMTyIMLxjsWOLOSnGrX5ymluvi4+xCA4DBm5Auc0fg1UvoMKaFJqDWlx81
e/s7FAUmESkgngDNFn/SD7PKepADr9IihYUNx2SMDWWq3bUqvpCT+r+UviIwkF/T2T
YulKxQXYseu+28k2SjTsWhaFskKfeRCqBSvNy/amJ4cEeNK7/zsStMxffbcqCYnK3P
zuwFAOQhpUH29rOx1cYe54haVYpgCIYA/x3miCIKxTbJvCdA8eHbD8r2XhA3RzmW6Z
KN0d+XBLDhCM47OKWhQeSMey5+6G21IPBgzqik/wY2ueB7noa1WyDU1FwhBQ5NBfnR
ZYRXW+xFXmDaQ==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=VaJUP0p9 c=1 sm=1 tr=0 ts=66cbe2ea
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=8AHkEIZyAAAA:8 a=-Un3A0aXAAAA:8 a=72i9A83YPe2BvavxpcsA:9
a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=GvhOMoiiA4djxE1E9tNR:22
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <009a01daf757$663b2ae0$32b180a0$@gmail.com>
X-CMAE-Envelope: MS4xfKCm8sATpUrXkAsnQ2FbrXY8/56LrfsBBUgwStzchqi71F6+0BDyXtrLTCgEIA5KSCNoDxoA8P3nmoem+f3ThGE48cKnAu+8wWaPsDOFVa5v+AFPecZd
McgwAdDpfIG6dkM6BLUA+yDsm+jZZENxujM4AZkbrYDhCrY/tkr6s8yjr3bXzKWLYoib+7wOAFVEnfUeeRkQQ1ScDzCuKjzclEo=
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <f1fb8308-9f9b-49d9-b482-22d0885b7d4b@mrabarnett.plus.com>
X-Mailman-Original-References: <87ikvuzv8g.fsf@rpi3>
<liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
View all headers

On 2024-08-26 02:29, AVI GROSS via Python-list wrote:
> If everyone will pardon my curiosity, who and what purposes are these
> smaller environments for and do many people use them?
>
> I mean the price of a typical minimal laptop is not a big deal today. So are
> these for some sort of embedded uses?
>
> I read about them ages ago but wonder ...
>
A Raspberry Pi Pico W costs less than £5, is a lot smaller, and has a
much lower power consumption than a laptop, so if it's good enough for
the purpose (embedded controller), why use a laptop? That's overkill!
>
> -----Original Message-----
> From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On
> Behalf Of rbowman via Python-list
> Sent: Friday, August 23, 2024 1:22 AM
> To: python-list@python.org
> Subject: Re: new here
>
> On Fri, 23 Aug 2024 16:23:42 +1200, dn wrote:
>
>> Adding a display to the Pico-W is my next project... After that, gyros
>> (am thinking it may not go so well, on balance... hah!).
>
> https://toptechboy.com/two-axis-tilt-meter-displaying-pitch-and-roll-" rel="nofollow" target="_blank">https://toptechboy.com/two-axis-tilt-meter-displaying-pitch-and-roll-
> using-an-mpu6050-on-the-raspberry-pi-pico-w/
>
> You might have to go back a lesson or two for the lead up. As he generally
> says in the intro most of what he uses is from the Sunfounder Kepler kit.
> It has a standard LCD display but he suggested buying the OLED separately
> and used it for Lissajous patterns and other fancier stuff.
>
> It's not a bad series although he can be long-winded and his Python style
> definitely isn't PEP8 friendly.
>
> https://toptechboy.com/
>
> He switched to the Arduino Uno R4 after the IR controller/NeoPixel Pico
> project and I don't know if he intends to go back to the Pico. He uses
> Thonny but I use the MicroPython extension in VS Code. Lately I've been
> using Code for everything. Mostly I work on Linux boxes but it's all the
> same on Windows. There is a PlatformIO extension that works with Arduino
> and other boards. PyLance upsets some because it's a MS product but it
> works well too. I've used PyCharm and like it but I also work on C, .NET,
> Angular, and other projects and Code gives me a uniform IDE.

Subject: Re: new here
From: rbowman
Newsgroups: comp.lang.python
Date: Mon, 26 Aug 2024 02:58 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: 26 Aug 2024 02:58:25 GMT
Lines: 45
Message-ID: <lj29agF147cU1@mid.individual.net>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
<mailman.1.1724635772.2917.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net zbz3xkbjamR5NnYV604/Ow4nCt/XR2tCFcKF4l/Pnq2xFtknz5
Cancel-Lock: sha1:SmRHHWSqxqLmww8ynyNjBA81PI0= sha256:gKkuqS1c76XIcJhHpTNv8lrZBN48X0FLRQdztidA6lQ=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Sun, 25 Aug 2024 21:29:30 -0400, avi.e.gross wrote:

> If everyone will pardon my curiosity, who and what purposes are these
> smaller environments for and do many people use them?
>
> I mean the price of a typical minimal laptop is not a big deal today. So
> are these for some sort of embedded uses?
>
> I read about them ages ago but wonder ...

Typically they are used for I/O with the physical world. Some, like the
Arduino Nano Sense, have a number of sensors on the board including a 9
axis inertial, temperature, humidity, barometric, microphone, light
intensity, and color sensors. MIT chose this for their TinyML course
because it was one-stop shopping. Using TinyML, a really cut down version
of TensorFlow, gesture, wake word, image recognition, and other tasks were
move entirely to the edge device.

Others, like the Pico series, bring out the I/O pins but have little
onboard. Many pins are multi-purpose and are used for SPI or I2C
protocols, PWM, A/D measurements, and plain vanilla digital.

The Raspberry Pi series lives in both worlds. Particularly with the new Pi
5, it's usable as a desktop Linux system, if somewhat limited, while
bringing out the PIO pins.

It's really a different world than a typical laptop. Years (decades?) ago
you could subvert the parallel port controller to provide digital I/O but
who has seen a parallel port lately?

There are many families and devices available that are used for any number
of projects that need to interact with the real world. The earliest
variants were usually programmed in assembler since 2k of EPROM and 128
bytes of RAM was typical. As they improved C was sued. Now there's enough
flash and SRAM to support MicroPython or CircuitPython and they are fast
enough for most purposes. There are specialized drivers but if you know
Python the bulk of the logic will be very familiar.

For example I have a desktop Python app that pulls weather data from
NOAA's web API. The Pico W has Wifi, so if I wanted to compare NOAA's
temperature, humidity, and barometric pressure to the values I read from a
local sensor, the API requests and parsing the JSON reply would be almost
identical to the desktop code. Conversely I could use the Pico W as a web
server to make its sensor reading available.

Subject: RE: new here
From: <avi.e.gross@gmail.com>
Newsgroups: comp.lang.python
Date: Mon, 26 Aug 2024 03:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: <avi.e.gross@gmail.com>
Newsgroups: comp.lang.python
Subject: RE: new here
Date: Sun, 25 Aug 2024 23:38:45 -0400
Lines: 78
Message-ID: <mailman.7.1724643527.2917.python-list@python.org>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
<f1fb8308-9f9b-49d9-b482-22d0885b7d4b@mrabarnett.plus.com>
<040701daf769$746b8080$5d428180$@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 5zUKAK8lj70bmmInmUHpZAdTzYhK2iIYQD0/2+cek3SQ==
Cancel-Lock: sha1:/6xChJtkQqn7ekgW+zRCgpKkq3A= sha256:MK8ILrTe/xy+eCNbPPa3bVqlqV8FGFssuOf81trfKeI=
Return-Path: <avi.e.gross@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=ke759ENr;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.018
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'pycharm': 0.04; 'aug':
0.07; 'environments': 0.09; 'linux': 0.09; 'raspberry': 0.09;
'smaller': 0.09; 'uniform': 0.09; 'url:mailman': 0.15; '2024':
0.16; 'arduino': 0.16; 'avi': 0.16; 'enough,': 0.16; 'friendly.':
0.16; 'gross': 0.16; 'intro': 0.16; 'lesson': 0.16; 'micropython':
0.16; 'pardon': 0.16; 'patterns': 0.16; 'received:mail-
qv1-xf34.google.com': 0.16; 'separately': 0.16; 'subject:here':
0.16; 'them?': 0.16; 'windows.': 0.16; 'wrote:': 0.16; 'python':
0.16; 'says': 0.17; 'code.': 0.17; 'message-id:@gmail.com': 0.18;
'uses': 0.19; 'to:addr:python-list': 0.20; "i've": 0.22; 'fri,':
0.22; 'purposes': 0.22; 'code': 0.23; 'laptop': 0.23; 'skip:- 10':
0.25; 'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24':
0.25; 'extension': 0.25; 'url:listinfo': 0.25; 'url-
ip:188.166/16': 0.25; 'friday,': 0.26; "isn't": 0.27; 'mostly':
0.28; 'purpose': 0.28; 'series': 0.28; 'thinking': 0.28; 'url-
ip:188/8': 0.31; 'everyone': 0.32; 'personally': 0.32; 'python-
list': 0.32; 'but': 0.32; 'there': 0.33; 'same': 0.34; 'mean':
0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'definitely': 0.35; 'yes,': 0.35; 'from:addr:gmail.com': 0.35;
'display': 0.36; 'people': 0.36; 'using': 0.37; "it's": 0.37;
'read': 0.38; 'two': 0.39; 'adding': 0.39; 'enough': 0.39; 'ago':
0.39; 'use': 0.39; 'received:100': 0.39; 'something': 0.40;
'from:': 0.62; 'to:': 0.62; '25,': 0.62; 'gives': 0.62; 'lower':
0.62; 'here': 0.62; 're:': 0.64; 'his': 0.65; 'well': 0.65;
'less': 0.65; 'lead': 0.67; 'back': 0.67; 'bad': 0.67;
'generally': 0.67; 'that,': 0.67; 'too.': 0.70; 'url-ip:208/8':
0.71; 'product': 0.71; 'deal': 0.73; 'costs': 0.74; 'price': 0.75;
'sent:': 0.78; 'ages': 0.84; 'intends': 0.84; 'lcd': 0.84; 'skip:u
40': 0.84; 'url-ip:208.109/16': 0.84; 'buying': 0.91; 'cheap':
0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1724643525; x=1725248325; darn=python.org;
h=content-language:thread-index:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=Fr+zZY+NNLJ0L3DZlj5Lm/yP6QFrTMZNZ4LMR1q3CkM=;
b=ke759ENrYHV0ntPswJ5rEvtHSuBAz8UjLZK/xnTe5+bv/zoRKWCUrCEYXK2bp2+vdx
mTSsWfKdQMZd4x0hdRwnlr9tMywN8WIko3nvIp+ETbQuc4xRtZ+8qXNGFw19GfCx9e34
GenpmeIz9gzSYPCm3MTTZPlb2z+N+NtPVTc/at5s+8WwuzQmnnrGBbONca7Da0r3NS1J
EZqktO5MCsXxutqbXI0rVp/lPS9krvvnzcPXcT+5A/WDIgyw7rc+T6LyJ9ZWacF6YBkj
nedU8CHcxLclCTd2LPmtq0FAaDXHvCDyfUGFWW0BfToLs/uHn+MCLu5qskezszZUVnSd
aG3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1724643525; x=1725248325;
h=content-language:thread-index:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=Fr+zZY+NNLJ0L3DZlj5Lm/yP6QFrTMZNZ4LMR1q3CkM=;
b=Xfw/oXZvDFL8+VM8GMb2zwz9r0eytH2fFkeJ/jVt4YoRs/5Ja94DWbf5jdxlOGfELG
CMMRuCDduURmyN6jXLKkxcpJL00odz+K/G1mxQg0YyIvm2HOncCVabrmdu2FHYkeFrHC
/cYPdKMpBp0L+jiU0M21iJJfbZNWTKXX3KDk9daJ1VIkhxjdaIt5a9dEIMJu7V0XRL1S
4nREaBg3x0lBFYRGk1qy83nyBadKUPrSzchb50mUVybK0vGCqvx5vnuzt7FhDPqR5L6w
LP9/AzKzVZgcZfAPaMYgI2vmvuQmDJsqhOXGRJeh6FcZ3B8MtEEyze1Tz2zBubwdr3NA
1bpg==
X-Forwarded-Encrypted: i=1;
AJvYcCVF3N27zB3Nzu+aYcoj0kt61PFW38buF6YcZlp4v56KH0kymE3zy2KRXaHmOGfEhfedVYHCPKA4yirxzA==@python.org
X-Gm-Message-State: AOJu0YwMURGHEG1sMiKyNgpi165BeO0xeBNjXxnydDaN/67OI3oZJUl5
10Lpz2vrhQkUNOAWP7XzrpjRRo20uvZ/fq5XWHR3cCaDCjA0innj/bZF96RQ
X-Google-Smtp-Source: AGHT+IGTRagZWaGIRkFZmmelHPJQvMb6oWG0+vei7jnXyEypMSfvnwthqU0Ox8NILAogVpNorSW/Kg==
X-Received: by 2002:a05:6214:5912:b0:6bf:aa45:d1f7 with SMTP id
6a1803df08f44-6c16dcb5d67mr116030266d6.27.1724643525113;
Sun, 25 Aug 2024 20:38:45 -0700 (PDT)
In-Reply-To: <f1fb8308-9f9b-49d9-b482-22d0885b7d4b@mrabarnett.plus.com>
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQD0xJz3Kom1iv7hvEmPsjAD/TXACgHGu/fiAUzhN0QC3IE/+wKjQgw/AstKOOUCB3VA7QIPhI89AiOArJQAlySa6wIQE/ULAhckuouzUo03YA==
Content-Language: en-us
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <040701daf769$746b8080$5d428180$@gmail.com>
X-Mailman-Original-References: <87ikvuzv8g.fsf@rpi3>
<liktbqFgjfU2@mid.individual.net> <87zfp4bgm3.fsf@nightsong.com>
<lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
<f1fb8308-9f9b-49d9-b482-22d0885b7d4b@mrabarnett.plus.com>
View all headers

Thank you Michael. Embedded Controllers are something I personally have never had to deal with, except as an inviable part of things I use.

But, yes, things like that when cheap enough, make plenty of sense.

-----Original Message-----
From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On Behalf Of MRAB via Python-list
Sent: Sunday, August 25, 2024 10:05 PM
To: python-list@python.org
Subject: Re: new here

On 2024-08-26 02:29, AVI GROSS via Python-list wrote:
> If everyone will pardon my curiosity, who and what purposes are these
> smaller environments for and do many people use them?
>
> I mean the price of a typical minimal laptop is not a big deal today. So are
> these for some sort of embedded uses?
>
> I read about them ages ago but wonder ...
>
A Raspberry Pi Pico W costs less than £5, is a lot smaller, and has a
much lower power consumption than a laptop, so if it's good enough for
the purpose (embedded controller), why use a laptop? That's overkill!
>
> -----Original Message-----
> From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On
> Behalf Of rbowman via Python-list
> Sent: Friday, August 23, 2024 1:22 AM
> To: python-list@python.org
> Subject: Re: new here
>
> On Fri, 23 Aug 2024 16:23:42 +1200, dn wrote:
>
>> Adding a display to the Pico-W is my next project... After that, gyros
>> (am thinking it may not go so well, on balance... hah!).
>
> https://toptechboy.com/two-axis-tilt-meter-displaying-pitch-and-roll-" rel="nofollow" target="_blank">https://toptechboy.com/two-axis-tilt-meter-displaying-pitch-and-roll-
> using-an-mpu6050-on-the-raspberry-pi-pico-w/
>
> You might have to go back a lesson or two for the lead up. As he generally
> says in the intro most of what he uses is from the Sunfounder Kepler kit.
> It has a standard LCD display but he suggested buying the OLED separately
> and used it for Lissajous patterns and other fancier stuff.
>
> It's not a bad series although he can be long-winded and his Python style
> definitely isn't PEP8 friendly.
>
> https://toptechboy.com/
>
> He switched to the Arduino Uno R4 after the IR controller/NeoPixel Pico
> project and I don't know if he intends to go back to the Pico. He uses
> Thonny but I use the MicroPython extension in VS Code. Lately I've been
> using Code for everything. Mostly I work on Linux boxes but it's all the
> same on Windows. There is a PlatformIO extension that works with Arduino
> and other boards. PyLance upsets some because it's a MS product but it
> works well too. I've used PyCharm and like it but I also work on C, ..NET,
> Angular, and other projects and Code gives me a uniform IDE.

--
https://mail.python.org/mailman/listinfo/python-list

Subject: Re: new here
From: Daniel
Newsgroups: comp.lang.python
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Wed, 28 Aug 2024 07:41 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!news-out.netnews.com!s1-1.netnews.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx39.iad.POSTED!not-for-mail
From: me@sc1f1dan.com (Daniel)
Newsgroups: comp.lang.python
Subject: Re: new here
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
<mailman.1.1724635772.2917.python-list@python.org>
<lj29agF147cU1@mid.individual.net>
Message-ID: <87y14hm6vr.fsf@rpi3>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:jlmuVcKE0SagO8GmrFw1BGvR9HI=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 54
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Wed, 28 Aug 2024 07:41:30 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Wed, 28 Aug 2024 08:41:28 +0100
X-Received-Bytes: 3827
X-Original-Bytes: 3776
View all headers

rbowman <bowman@montana.com> writes:

> On Sun, 25 Aug 2024 21:29:30 -0400, avi.e.gross wrote:
>
>> If everyone will pardon my curiosity, who and what purposes are these
>> smaller environments for and do many people use them?
>>
>> I mean the price of a typical minimal laptop is not a big deal today. So
>> are these for some sort of embedded uses?
>>
>> I read about them ages ago but wonder ...
>
> Typically they are used for I/O with the physical world. Some, like the
> Arduino Nano Sense, have a number of sensors on the board including a 9
> axis inertial, temperature, humidity, barometric, microphone, light
> intensity, and color sensors. MIT chose this for their TinyML course
> because it was one-stop shopping. Using TinyML, a really cut down version
> of TensorFlow, gesture, wake word, image recognition, and other tasks were
> move entirely to the edge device.
>
> Others, like the Pico series, bring out the I/O pins but have little
> onboard. Many pins are multi-purpose and are used for SPI or I2C
> protocols, PWM, A/D measurements, and plain vanilla digital.
>
> The Raspberry Pi series lives in both worlds. Particularly with the new Pi
> 5, it's usable as a desktop Linux system, if somewhat limited, while
> bringing out the PIO pins.
>
> It's really a different world than a typical laptop. Years (decades?) ago
> you could subvert the parallel port controller to provide digital I/O but
> who has seen a parallel port lately?
>
> There are many families and devices available that are used for any number
> of projects that need to interact with the real world. The earliest
> variants were usually programmed in assembler since 2k of EPROM and 128
> bytes of RAM was typical. As they improved C was sued. Now there's enough
> flash and SRAM to support MicroPython or CircuitPython and they are fast
> enough for most purposes. There are specialized drivers but if you know
> Python the bulk of the logic will be very familiar.
>
> For example I have a desktop Python app that pulls weather data from
> NOAA's web API. The Pico W has Wifi, so if I wanted to compare NOAA's
> temperature, humidity, and barometric pressure to the values I read from a
> local sensor, the API requests and parsing the JSON reply would be almost
> identical to the desktop code. Conversely I could use the Pico W as a web
> server to make its sensor reading available.

That is so cool. I've had the same idea to use the API with AWS for my
bbs. I also want to do the same thing for other government sites like
ecfr for pulling aviation regulations.

Is your code somewhere I can look at it?

Daniel

Subject: Re: new here
From: rbowman
Newsgroups: comp.lang.python
Date: Wed, 28 Aug 2024 18:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.lang.python
Subject: Re: new here
Date: 28 Aug 2024 18:06:33 GMT
Lines: 62
Message-ID: <lj9799F3k5jU1@mid.individual.net>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<87zfp4bgm3.fsf@nightsong.com> <lipj21Flti1U6@mid.individual.net>
<6da65aef-86d7-46e7-90cc-692985ffaf29@DancesWithMice.info>
<mailman.65.1724358976.2890.python-list@python.org>
<liqeqiFprmmU1@mid.individual.net>
<3f06d06e-732f-4afa-ba23-24aa1b742de4@DancesWithMice.info>
<mailman.66.1724387030.2890.python-list@python.org>
<liqkjcFqt10U2@mid.individual.net>
<009a01daf757$663b2ae0$32b180a0$@gmail.com>
<mailman.1.1724635772.2917.python-list@python.org>
<lj29agF147cU1@mid.individual.net> <87y14hm6vr.fsf@rpi3>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 5vqTtpJTSO5NRXVcfR8aBwXFm/dnNOlPFSikD7U3rZDXyQMUJI
Cancel-Lock: sha1:JQq9WQHrXnhT+e9NdDMYRw8u968= sha256:y07JEOsRDnrNeoGYwOfAt0l9G4cTpUkIXB752VreIG0=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Wed, 28 Aug 2024 08:41:28 +0100, Daniel wrote:

> That is so cool. I've had the same idea to use the API with AWS for my
> bbs. I also want to do the same thing for other government sites like
> ecfr for pulling aviation regulations.
>
> Is your code somewhere I can look at it?

The NOAA? I didn't get dncy so I'm calling get_station_info with a
hardcoded latitude and longitude. The commented out print(json.dumps())
pretty print the JSON so you can decide what to extract. I'm not 100% sure
about tacking K onto the grid ID. The famous 'works for me' A URL like

https://forecast.weather.gov/MapClick.php?lat=40.8551337&lon=-114.0140115

will show the same info, in this case for Wendover Airport (KENV).

https://www.weather.gov/documentation/services-web-api

is the documentation for the API.

import json
import requests

def get_station_info(latitude, longitude):
url = f"https://api.weather.gov/points/{latitude},{longitude}"
response = requests.get(url).json()
# print(json.dumps(response, indent=4, sort_keys=True))
property = response['properties']
grid_id = property["gridId"]
grid_x = property["gridX"]
grid_y = property["gridY"]
forecast_url = property["forecast"]
observation_url = f"https://api.weather.gov/stations/K{grid_id}/
observations/latest"
response = requests.get(observation_url).json()
# print(json.dumps(response, indent=4, sort_keys=True))
properties = response['properties']
pressure = properties['barometricPressure']
temperature = properties['temperature']
humidity = properties['relativeHumidity']
dewpoint = properties['dewpoint']

temp = 9 * temperature['value'] / 5 + 32
dew = 9 * dewpoint['value'] / 5 + 32
hum = humidity['value']
bp = pressure['value'] * 0.000295
print(f"temperature {temp} dewpoint {dew:.2f} humidity {hum:.2f}
pressure {bp:.2f}\n")

response = requests.get(forecast_url).json()
properties = response['properties']
periods = properties['periods']
# print(json.dumps(period, indent=4, sort_keys=True))
for i in range(0, len(periods)):
period = periods[i]
print(period['name'])
print(period['detailedForecast'])
print(f"temperature: {period['temperature']}")
print(f"wind {period['windSpeed']} {period['windDirection']}")
print()

Pages:12

rocksolid light 0.9.8
clearnet tor