Search found 2015 matches

by jimmo
Fri Nov 06, 2020 3:19 am
Forum: Development of MicroPython
Topic: Native machine code bss corruption
Replies: 3
Views: 325

Re: Native machine code bss corruption

See Damien's reply on that issue. Doesn't look like there's currently a workaround sorry...
by jimmo
Fri Nov 06, 2020 2:37 am
Forum: General Discussion and Questions
Topic: Writing fast and efficient MicroPython (extension)
Replies: 9
Views: 460

Re: Writing fast and efficient MicroPython (extension)

With sleep_ms(0) I'm trying to convey that this specific task, does not necessarily have priority over any other scheduled task. So it is a way of saying, I'm yielding to the control loop so that it can decide what needs to happen next before I finish this function. Unfortunately sleep(0) has to do...
by jimmo
Fri Nov 06, 2020 2:28 am
Forum: General Discussion and Questions
Topic: Log entire REPL prompt to SD
Replies: 7
Views: 464

Re: Log entire REPL prompt to SD

Is there the ability to view the REPL prompt wirelessly on the PYBD-SF6W? With WebREPL, yes. I am noticing that an error gets returned on my PYBD-SF6W saying that os module has no module dupterm. I've tried both os and uos. I noticed that others had a similar issue on ESP32 boards: viewtopic.php?t=...
by jimmo
Fri Nov 06, 2020 1:54 am
Forum: MicroPython pyboard
Topic: swap (or change) uart pins on pyboard
Replies: 1
Views: 217

Re: swap (or change) uart pins on pyboard

**I posted this before in the "general discussion" forum. I realized later that I should have posted this here. If there is a way of moving a thread to another part of the forum, I am happy to do so.** I already replied to your original post - https://forum.micropython.org/viewtopic.php?f=2&t=9256&...
by jimmo
Tue Nov 03, 2020 10:36 pm
Forum: Pyboard D-series
Topic: Green flashing LED every 5 seconds
Replies: 3
Views: 305

Re: Green flashing LED every 5 seconds

kbrenner wrote:
Tue Nov 03, 2020 2:30 pm
What does it mean when you see the green LED flash roughly once every 5 seconds on the PYBD-SF6W? There are no other LED colors flashing.
Not sure... can you provide any other info? Does the board operate normally otherwise.. i.e. running main.py, access to REPL, etc?
by jimmo
Tue Nov 03, 2020 10:32 pm
Forum: ESP32 boards
Topic: Can't seem to import module even after `sys.path.insert()`.
Replies: 4
Views: 290

Re: Can't seem to import module even after `sys.path.insert()`.

>>> os.listdir() ['main.py', 'source\temp_sensor.py', 'source\\BME280.py', 'source\\__init__.py', 'source\\ota_updater.py', 'source'] As roberthh says - there is no directory on your device named "source", and what's happened is that you have files in the root directory somehow named "source\\foo.p...
by jimmo
Tue Nov 03, 2020 10:27 pm
Forum: General Discussion and Questions
Topic: Log entire REPL prompt to SD
Replies: 7
Views: 464

Re: Log entire REPL prompt to SD

Can you explain what you mean by "log the entire REPL prompt". If what you mean is something like: create a text file, the contents of which look exactly like the interactive REPL session, then yes you can do this with dupterm. I haven't tested this, but the rough idea is to make a stream that you p...
by jimmo
Tue Nov 03, 2020 1:08 pm
Forum: General Discussion and Questions
Topic: To update or not to update µpython ?
Replies: 4
Views: 283

Re: To update or not to update µpython ?

In general I would recommend just using the release versions unless you have a specific fix or feature you require from the unstable versions. Something to remember is that the date shown for a commit in git log is not necessarily the date that commit was added to that branch but rather when the com...
by jimmo
Tue Nov 03, 2020 11:48 am
Forum: General Discussion and Questions
Topic: Loop execution time restrictions?
Replies: 4
Views: 288

Re: Loop execution time restrictions?

What sort of issues do you see?
by jimmo
Tue Nov 03, 2020 3:46 am
Forum: ESP32 boards
Topic: Microdot cann't read local css files
Replies: 2
Views: 207

Re: Microdot cann't read local css files

draco.wang wrote:
Tue Nov 03, 2020 3:25 am
GET bootstrap.min.css 404
The example doesn't have any code in it to respond to anything other than "/" (where it returns gpio.html for a GET, and handles the form for a POST). You'll need to add a handler for "/bootstrap.min.css" that uses send_file to return the CSS.