Search found 11 matches

by donmerch
Tue Apr 14, 2020 6:35 pm
Forum: General Discussion and Questions
Topic: Can there be 2 python programs running at the same time?
Replies: 8
Views: 4262

Can there be 2 python programs running at the same time?

I was watching a video about running a program in the background by appending the command with & but more importantly that 2 programs could be run simultaneously and it got me to thinking about a project I'm working on that has a repetitive data stream running but needs to respond to changes from a ...
by donmerch
Sun Apr 12, 2020 3:48 pm
Forum: General Discussion and Questions
Topic: FAT32 SD card writes get slower as the file gets bigger
Replies: 3
Views: 2995

Re: FAT32 SD card writes get slower as the file gets bigger

I had another type of board (not running Micropython) that did data logging and what I did was monitor the voltage prior to the voltage regulator (battery or raw voltage) using a voltage divider and when it started to fall below a preset value then immediately close the sd file. That gave me a great...
by donmerch
Thu Apr 09, 2020 12:52 am
Forum: General Discussion and Questions
Topic: Question about flash memory
Replies: 5
Views: 2730

Re: Question about flash memory

jimmo wrote:
Thu Apr 09, 2020 12:27 am
The code (i.e. .py) lives on flash. It gets compiled into bytecode that lives in RAM (in the MicroPython heap). The entire MicroPython heap is completely zeroed out on soft reset.
Go it. Thanks for the explanation.
by donmerch
Wed Apr 08, 2020 10:57 pm
Forum: General Discussion and Questions
Topic: Question about flash memory
Replies: 5
Views: 2730

Re: Question about flash memory

So after thinking more about my question I think I'm wrong about where I thought that object or module resides. I would imagine when you type "import <whatever> in the repl that it actually resides in ram rather than flash and that it does get cleaned up when doing a control d correct?
by donmerch
Wed Apr 08, 2020 2:10 pm
Forum: General Discussion and Questions
Topic: Question about flash memory
Replies: 5
Views: 2730

Question about flash memory

Let's say I have several files in flash directory such as boot.py, main.py, foo.py, faz.py, etc.that are running and are all part of and used in my project code. And then I press control c to stop the program and then with the terminal I see the repl chevrons. So next I want to experiment and let's ...
by donmerch
Tue Apr 07, 2020 1:54 am
Forum: General Discussion and Questions
Topic: Need help with uasyncio
Replies: 7
Views: 4031

Re: Need help with uasyncio

Just thought of a question... should I have erased flash before I flashed the updated firmware?
by donmerch
Tue Apr 07, 2020 1:53 am
Forum: General Discussion and Questions
Topic: Need help with uasyncio
Replies: 7
Views: 4031

Re: Need help with uasyncio

Success! Thanks again @jimmo! MicroPython v1.12-337-g312c69949 on 2020-04-07; PYBv1.1 with STM32F405RG Type "help()" for more information. >>> help('modules') __main__ micropython uasyncio/lock uos _onewire network uasyncio/stream urandom _uasyncio onewire ubinascii ure builtins pyb ucollections use...
by donmerch
Tue Apr 07, 2020 1:24 am
Forum: General Discussion and Questions
Topic: Need help with uasyncio
Replies: 7
Views: 4031

Re: Need help with uasyncio

Thanks. I've downloaded the latest build and am now waiting for the rest of the required utilities to download so I can update with pydfu on my Mac. I'll let you know how it goes.
by donmerch
Mon Apr 06, 2020 10:16 pm
Forum: General Discussion and Questions
Topic: Need help with uasyncio
Replies: 7
Views: 4031

Need help with uasyncio

New to MicroPython and my PyBoard V1.1. I've gotten most of my programs to work fine and now wanted to implement uasyncio so that I can try and keep part on my program "running in the background" if you will. So I went on the adventure of trying to see if my setup has uasyncio by trying the suggesti...
by donmerch
Sun Apr 05, 2020 8:37 pm
Forum: General Discussion and Questions
Topic: How to check if file exists?
Replies: 5
Views: 12259

Re: How to check if file exists?

Thank you I'll give it a try.