| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
To start with, the critical scripts _boot.py and flashbdev.py are frozen
to improve performance and reduce RAM consumption.
Saves about 1000 bytes of heap RAM for a bare boot with filesystem.
|
|
|
|
|
| |
Not clearing the command line history sometimes results in strange output
when going back after a reset.
|
|
|
|
|
| |
It's now used for more than just stream protocol (e.g. pin protocol), so
don't use false names.
|
|
|
|
|
|
|
| |
The time stamp is taken from the RTC for all newly generated
or changed files. RTC must be maintained separately.
The dummy time stamp of Jan 1, 2000 is set in vfs.stat() for the
root directory, avoiding invalid time values.
|
|
|
|
|
|
| |
Based on my experience, there's rather non-zero chance to have an image be
flashed incorrectly. As --verify option is now works well in teh latest
esptool.py, enable it by default.
|
| |
|
|
|
|
|
|
|
|
|
| |
By design, at wake up from deepsleep, the RTC timer will be reset, but
the data stored in RTC memory will not [1]. Therefore, we have to adjust
delta in RTC memory before going into deepsleep to get almost correct
time after waking up.
[1] http://bbs.espressif.com/viewtopic.php?t=1184#p4082
|
|
|
|
|
|
|
| |
Instead of calling strlen(), which won't work if there're 32 chars in
returned ESSID. struct bss_info::ssid_len is not documented in SDK API
Guide, but is present in SDK headers since 1.4.0. Just in case, previous
code is left commented.
|
|
|
|
|
|
|
|
| |
ESP-SDK system_get_rtc_time() returns uint32 and therefore overflow
about every 7:45h. Let's write the last state of system_get_rtc_time()
in RTC mem and use it to check for overflow. This commit require running
pyb_rtc_get_us_since_2000() at least once within 7 hours to avoid
overflow.
|
|
|
|
| |
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.
|