Question(s)

o1bigtenor o1bigtenor at gmail.com
Thu Oct 26 16:25:38 EDT 2023


On Thu, Oct 26, 2023 at 11:43 AM Michael Torrie via Python-list
<python-list at python.org> wrote:
>
> On 10/26/23 06:34, o1bigtenor wrote:
> > Interesting - - - -  ". . . see if it runs." - - - that's the issue!
> > When the code is accessing sensors there isn't an easy way to
> > check that the code is working until one has done the all of the
> > physical construction. If I'm trying to control a pulsation system
> > using square waves with distinct needs for timing etc I hadn't
> > seen any way of 'stepping through the code' (phrase you use later).
>
> Having dabbled in embedded electronics, all I can say is you will just
> have to build it and try to get it working.  Failure is always an
> option.  If I understand you correctly, this is for a hobby interest, so
> go at it and have fun.
>
> Stepping through code is a basic part of debugging in any language.
> They all have tools for it. Google for python debugging.
>
> "distinct needs for timing?"  Did you forget to tell us you need to use
> MicroPython?  Certainly MicroPython running on a microcontroller with
> help from hardware timers certainly can do it, but this mailing list is
> not the place to ask about it.  Instead you'll have to visit a forum on
> MicroPython or CircuitPython.  By the way you definitely can step
> through MicroPython code one line at a time with a remote debugger, say
> with Visual Studio Code.

Its one of the reasons to use micropython - - - it is a subset of python.
I didn't think I was asking about micropython here though. The project with
the square wave stuff has lots going on so its more likely that regular python
will be used. Part of the challenge is trying to figure out if I need to be
running a real time kernel or even a real time OS. Independent information
is quite hard to find - - - seems like most of the information is by someone
with skin in the game and then without a background its hard to figure out
if what they're saying tells enough so that I can make a good decision or
not.
>
> > I have been following this list for some time. Don't believe that I've ever
> > seen anything where anyone was referred to 'Idle'.  In reading other user
> > group threads I have heard lots about java and its ide - - - don't remember,
> > again, any re: an ide for python.
>
> Idle has been mentioned on several occasions, but probably more on the
> python-tutor list.  I find it hard to believe that searching for Python
> IDEs really came up blank.  There are even IDEs for MicroPython and
> embedded devices.  I found a nice list with a quick search.

I didn't say that I had done any searching for a python ide. I have only
spent time looking for information on coding. There's lots on make a led
blink and other simple stuff but when you want to get at least a couple
orders more complicated - - - there is precious little and that's what I've
been looking for (and finding any stuff very hard to find!).
>
> > Even in maker threads - - - say for arduino - - its 'use this cut and
> > paste method
> > of programming' with no mention of any kind of ide when it was microPython - -
> > although being a subset of python it Idle may not work with it.
>
> You keep dropping little details that, had you included them in the
> first post, would have helped avoid a lot of answers that ultimately
> aren't going to be useful to you.  Are you working MicroPython or with
> regular Python on a PC?  That makes a big difference in where you go to
> get help and what kind of help we can provide here.
>
I didn't even really know how to ask the question(s). Likely I could have asked
better but until I got some of the answers did it make sense for me to add
further. I did not want an answer for one 'problem'. I was more looking for a
way of doing things (which is quite different).

> > Oh well - - - I am working on things!
>
> That is good.  I wish you success.
>
Thank you.

I'll likely be back with more questions (grin!).

(Lost a great mentor some almost 4 years ago now so its a lot more flail
around than if my buddy were still available.)

Thanking you for your ideas and tips!


More information about the Python-list mailing list