| Commit message (Collapse) | Author | Age |
|
|
|
| |
So ets_loop_iter is now only disabled when using machine.disable_irq.
|
|
|
|
|
|
| |
So that RTC.memory() returns b'' on power up if it was never set.
Fixes issue #2138.
|
|
|
|
|
|
|
| |
This implementation makes use of vfs.stat() and therefore has the same
properties. Known issues for all ports: uos.stat(".") on the top level
returns the error code 22, EINVAL. The same happens with
uos.stat("dirname/") where dirname IS the name of a directory.
|
| |
|
|
|
|
|
| |
Since not all ports that enable the machine module have the pin HAL
functions.
|
| |
|
|
|
|
|
| |
This is not part of public API, variable name may change, or it can be
replaced with a function.
|
| |
|
|
|
|
| |
Tested and seems to work. See #1995.
|
|
|
|
|
|
|
| |
Ctrl-C will raise a KeyboardInterrupt and stop the scan (although it will
continue to run in the background, it won't report anything). If
interrupted, and another scan() is started before the old one completes
in the background, then the second scan will fail with an OSError.
|
|
|
|
| |
scan() allocates memory so may cause an exception to be raised.
|
| |
|
| |
|
|
|
|
|
| |
TODO: should go in a more port-neutral place, like drivers/dht, but at the
moment in relies on specific esp module.
|
|
|
|
|
| |
Exposed as esp.dht_readinto. Probably should go somewhere less
port-specific.
|
|
|
|
|
| |
mp_hal_pin_config_od is renamed mp_hal_pin_open_drain, and mp_hal_pin_low
is mp_hal_pin_od_low.
|
| |
|
|
|
|
|
|
| |
ets_loop_iter processes pending tasks, and tasks are considered lower
priority than interrupts, so tasks shouldn't be processed if interrupts
are disabled.
|
| |
|
| |
|
| |
|
|
|
|
| |
So, keep call to it protected via NLR still.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Make dupterm subsystem close a term stream object when EOF or error occurs.
There's no other party than dupterm itself in a better position to do this,
and this is required to properly reclaim stream resources, especially if
multiple dupterm sessions may be established (e.g. as networking
connections).
|
|
|
|
| |
APA102 is a new "smart LED", similar to WS2812 aka "Neopixel".
|
|
|
|
|
|
| |
Adding a very first start section to get people going after flashing.
I tried to condense it to a minimum to avoid as much as possible
redundancy and bloating.
|
|
|
|
| |
modwebrepl truncates password to 9 chars, and that led people to confusion.
|
|
|
|
|
| |
That was the intent for the initial user setup, but didn't work before
due to lwIP issues. Enable now that they're fixed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
That one was missing in the module, even if it was available in the
vfs object. The change consist of adding the name and preparing the
call to the underlying vfs module, similar to what was already
implemented e.g. for remove.
Rename is useful by itself, or for instance for a safe file replace,
consisting of the sequence:
write to a temp file
delete the original file
rename the temp file to the original file's name
|
| |
|
| |
|
|
|
|
|
|
|
| |
These symbols are still defined in terms of the system Exxx symbols, and
can be switched to internal numeric definitions at a later stage.
Note that extmod/modlwip still uses many system Exxx symbols.
|
|
|
|
| |
As reported on the forum by Roberthh.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This gives noticeable result for parsing simple input (modelled on 32-bit
unix port):
Before:
>>> micropython.mem_total()
3360
>>> micropython.mem_total()
4472
After:
>>> micropython.mem_total()
3072
>>> micropython.mem_total()
4052
However, effect on parsing large input is much less conclusive, e.g.:
Before:
>>> micropython.mem_total()
3376
>>> import pystone_lowmem
>>> micropython.mem_total()
33006
delta=29630
After:
>>> micropython.mem_total()
3091
>>> import pystone_lowmem
>>> micropython.mem_total()
32509
delta=29418
|
|
|
|
|
|
| |
This is kind of compensation for 4K FatFs buffer size which is eaten away
from it on FS mount. This should still leave enough of networking ("OS")
heap.
|
|
|
|
| |
Starts WebREPL server in foreground and waits for (single) connection.
|
|
|
|
| |
This commit fixes issue #2045
|
| |
|
|
|
|
|
|
| |
It interferes with running testsuite. master branch should be optimized for
development, so any features which interfere with that, would need to be
disabled by default.
|
|
|
|
|
| |
This constant is no longer part of hardware API (replaced with just None),
and is a default, so not needed in calls.
|
| |
|
| |
|
|
|
|
|
| |
.time() returns seconds since MicroPython epoch (2000-01-01 00:00UTC),
.settime() sends current system time, assuming UTC timezone.
|
| |
|
| |
|