summaryrefslogtreecommitdiff
path: root/esp8266/modules
AgeCommit message (Collapse)Author
2016-12-05esp8266: Move websocket_helper.py from scripts to modules for frozen BC.puuu
websocket_helper.py is used by webrepl. If webrepl is enabled and websocket_helper.py is not frozen bytecode it leads to heap fragmentation.
2016-11-08esp8266: Include upip as a standard frozen bytecode module.Paul Sokolovsky
Previously, it was included only in release builds, but it's important tool which should be always at the fingertips to be useful (and to pump up its usage).
2016-11-06esp8266: Rework webrepl_setup to run over wired REPL.Paul Sokolovsky
2016-11-03drivers: Add "from micropython import const" when const is used.Damien George
Following best-practice use of the const feature, to make it compatible with Python.
2016-11-02esp8266/modules: Fix negative temperature in ds18x20 driver.ernitron
2016-10-24esp8266/modesp: Add flash_user_start() function.Paul Sokolovsky
As we're looking towards adding OTA support, calculation of a FlashROM area which can be used for filesystem (etc.) may become complex, so introduce C function for that. So far it just hardcodes current value, 0x90000. In the future the function may be extended (and renamed) to return the size of area too.
2016-10-20esp8266/modules/webrepl: Enforce only one concurrent WebREPL connection.Paul Sokolovsky
Concurrent WebREPL connections were never supported, now actually check for this.
2016-08-29esp8266/modules/ds18x20.py: Add support for DS18S20 devices.Damien George
2016-08-29esp8266/modules/onewire: Change onewire.read() to onewire.readinto().Damien George
This allows 1-wire drivers (eg DS18X20) to perform in-place operations and hence do less memory allocations.
2016-08-29esp8266/modules: Split onewire.py into OneWire and DS18X20 driver.Damien George
The OneWire class is now in its own onewire.py module, and the temperature sensor class is in its own ds18x20.py module. The latter is renamed to DS18X20 to reflect the fact that it will support both the "S" and "B" variants of the device. These files are moved to the modules/ subdirectory to take advantage of frozen bytecode.
2016-08-09esp8266/modules/flashbdev: Start filesystem at 0x90000.Paul Sokolovsky
To accommodate growing firmware.
2016-08-06esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.Paul Sokolovsky
2016-07-23esp8266/_boot.py: Decrease GC alloc threshold to quarter of heap size.Paul Sokolovsky
The idea behind decrease is: bytecode and other static data is also kept on heap, and can easily become half of heap, then setting threshold to half of heap will have null effect - GC will happen on complete heap exhaustion like before. But exactly in such config maintaining heap defragmented is very important, so lower threshold to accommodate that.
2016-07-23esp8266/_boot.py: Set GC alloc threshold to half of heap size.Paul Sokolovsky
Should keep good chunk of heap unfragmented, if a user application allows that at all.
2016-07-02esp8266: Switch webrepl to use frozen bytecode.Paul Sokolovsky
2016-07-02esp8266: Switch webrepl_setup to use frozen bytecode.Paul Sokolovsky
2016-07-02esp8266: Explicitly collect garbage in bootstrap scripts.Paul Sokolovsky
Leads to less fragmentation at teh time user code starts.
2016-06-29esp8266: Enable frozen bytecode, with scripts in modules/ subdir.Damien George
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.