Paul Sokolovsky
6d11918d49
lib/berkeley-db-1.xx: Update, sets default page size to 4096.
...
This both good default for 4096 and makes less chance to see overflow page
issues.
2016-08-09 02:09:59 +03:00
Paul Sokolovsky
5c73de0337
docs/uio: Mention seek()/flush() support for io.BytesIO.
2016-08-09 01:52:56 +03:00
Paul Sokolovsky
3e5534caf7
docs/esp8266/intro: Focus on hazards of unearthed power wrt electronics.
2016-08-07 22:41:34 +03:00
Paul Sokolovsky
1bc2911174
py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.
...
Similar to existing MP_NOINLINE.
2016-08-07 22:36:05 +03:00
Paul Sokolovsky
d2cab0b7be
docs/esp8266/tutorial/intro: Add anchor for link from quickeref.
2016-08-07 22:16:40 +03:00
Paul Sokolovsky
8897dcb2a1
tests/basics: bytes/str.partition/rpartition are now optional.
...
Skip tests if not available.
2016-08-07 22:14:34 +03:00
Paul Sokolovsky
f84dda7111
docs/esp8266/quickref: Link to installation instructions.
2016-08-07 17:46:27 +03:00
Paul Sokolovsky
a9923d190e
docs/esp8266/intro: Add troubleshooting section.
...
Tries to summarize most of the issues we've seen so far.
2016-08-07 17:28:33 +03:00
Paul Sokolovsky
919c54f750
docs/esp8266/intro: Rename to "Getting started" from "Introduction".
...
People tend to skip introductions (everyone knows what esp8266 is, right?),
so try to do A/B testing with a title inviting to read it.
2016-08-07 17:28:23 +03:00
Paul Sokolovsky
1966745689
esp8266/tutorial/intro: Reword para abou -fm dio switch.
...
Not all NodeMCU boards require it.
2016-08-07 16:31:09 +03:00
Paul Sokolovsky
31ad1bb606
esp8266/modmachine: Implement dummy sleep() function.
2016-08-07 16:20:01 +03:00
Paul Sokolovsky
541e76fa45
esp8266/modutime: Actually implement ticks_cpu().
2016-08-07 16:13:51 +03:00
Paul Sokolovsky
f71f37e426
esp8266/esp_mphal.h: Add mp_hal_ticks_cpu() for reuse.
2016-08-07 16:03:00 +03:00
Paul Sokolovsky
c2070d771a
esp8266/modmachine: Implement idle() function.
2016-08-07 15:51:04 +03:00
Paul Sokolovsky
1563388001
py/objstr,objstrunicode: Fix inconistent #if indentation.
2016-08-07 15:24:57 +03:00
Paul Sokolovsky
56eb25f049
py/objstr: Make .partition()/.rpartition() methods configurable.
...
Default is disabled, enabled for unix port. Saves 600 bytes on x86.
2016-08-07 06:46:55 +03:00
Paul Sokolovsky
a4aaf82421
unix/moduselect: Allow poll.register(), etc. accept fd-like objects.
...
This includes file and socket objects, backed by Unix file descriptor.
This improves compatibility with stmhal's uselect (and convenience of
use), though not completely: return value from poll.poll() is still
raw file descriptor.
2016-08-07 01:25:59 +03:00
Paul Sokolovsky
fdb411a8c5
docs/library/index: Include array module in ToC.
2016-08-07 00:16:41 +03:00
Paul Sokolovsky
8a0b6f561c
docs/array: Document array module.
2016-08-07 00:13:48 +03:00
Paul Sokolovsky
e15fb33e10
extmod/modwebrepl: Add GET_VER operation to query MicroPython version.
2016-08-07 00:01:25 +03:00
Paul Sokolovsky
cbef0dba2e
extmod/modwebsocket: Use mp_rom_map_elem_t and friends.
2016-08-06 16:18:03 +03:00
Paul Sokolovsky
e0d49b7e1b
extmod/modwebsocket: Make compatible with non-default object models.
2016-08-06 15:53:16 +03:00
Paul Sokolovsky
6de37864a2
esp8266/scripts/inisetup: Add commented-out call to esp.osdebug(None).
...
That apparently will only help folks who read the docs on how to disable,
but could use a quick reminder straight in boot.py. For the developers,
it's important to have debug logging enabled in development branch
(master).
2016-08-06 15:27:38 +03:00
Paul Sokolovsky
ca59f5f208
esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.
2016-08-06 15:21:49 +03:00
Paul Sokolovsky
5b9e7e29f6
unix: Enable websocket module.
2016-08-06 15:15:53 +03:00
Paul Sokolovsky
a931c4eeec
extmod/modwebsocket: Add readline method.
...
This goes bit against websocket nature (message-based communication),
as it ignores boundaries bertween messages, but may be very practical
to do simple things with websockets.
2016-08-06 15:13:26 +03:00
Paul Sokolovsky
3d19adf9b3
examples/network: Split recv- and read-based HTTP servers.
...
Name recv() based a "simplistic", as it can't work robustly in every
environment. All this is to let people concentreate on proper, read()-
based one (and to turn recv() based into a "negative showcase",
explaining what are the pitfalls of such approach).
2016-08-06 01:59:51 +03:00
Paul Sokolovsky
d79342d33e
extmod/modbtree: open(): Add option kwargs.
...
Namely: flags, cachesize, pagesize, minkeypage.
2016-08-06 00:10:22 +03:00
Paul Sokolovsky
ed500e4987
extmod/modwebrepl: Make GET_FILE operation non-blocking.
...
In the sense that while GET_FILE transfers its data, REPL still works.
This is done by requiring client to send 1-byte block before WebREPL
server transfers next block of data.
2016-08-05 22:57:50 +03:00
Paul Sokolovsky
c16612ee87
extmod/modwebrepl: Factor out "GET" iteration to write_file_chunk().
2016-08-05 22:53:10 +03:00
Paul Sokolovsky
7fb31479bf
py/mkrules.mk: Allow to add more items for "clean" target using CLEAN_EXTRA.
2016-08-04 23:46:08 +03:00
David Siorpaes
b67eb20ed0
stmhal: Fix I2C mappings for STM32F429DISC board.
2016-08-04 22:51:53 +10:00
Paul Sokolovsky
4a27ad040e
esp8266/scripts/port_diag.py: Include esp.check_fw() call.
2016-08-04 00:43:58 +03:00
Paul Sokolovsky
e33d2383d1
esp8266/modesp: Add check_fw() function to check integrity of the firmware.
...
Requires firmware generated by the latest makeimg.py (which stores size
and md5 of the firmware together with the firmware itself).
2016-08-04 00:29:19 +03:00
Paul Sokolovsky
bf47b71b78
esp8266/makeimg.py: Append md5 hash to the generated binary.
...
md5 is calculated over the entire file, except first 4 bytes, which contain
flash parameters and may be changed by flashing tool or MicroPython flash
auto-config.
2016-08-04 00:21:05 +03:00
Paul Sokolovsky
a621333a4c
esp8266/makeimg.py: Store firmware size as last 4 bytes of padding area.
2016-08-04 00:19:09 +03:00
Radomir Dopieralski
efb8aa0ef6
logo/1bit-logo A black & white version of the logo
...
This version of the logo may be useful for displaying on small
devices to show that they use MicroPython.
2016-08-02 14:59:55 +03:00
Mike Causer
ce166e6b68
docs: Spelling mistakes
2016-08-02 11:17:46 +03:00
Paul Sokolovsky
3eb532e974
extmod/modbtree: Implement __contains__ operation.
2016-08-02 00:24:59 +03:00
Damien George
8766bc02dc
cc3200, teensy: Remove broken malloc/free/realloc macro helpers.
...
These macros are broken and are anyway unused on these two ports. If they
are ever needed in the future then their implementation can be taken from
either stmhal (working macros in mpconfigport.h) or esp8266 (functions).
2016-08-02 01:12:45 +10:00
Mike Causer
b4564841b6
docs: Add DHT to ESP8266 Quick Ref and Tutorial
2016-08-01 14:39:57 +03:00
Paul Sokolovsky
0e4cae5212
esp8266: Make APA102 driver inclusion configurable.
2016-08-01 00:03:55 +03:00
Paul Sokolovsky
88d3cd582e
esp8266/eagle.rom.addr.v6.ld: Add Enable_QMode symbol from SDK 2.0.0.
2016-08-01 00:01:49 +03:00
Paul Sokolovsky
bc3912980a
tests/machine1: Revamp to work with unix port (which has "umachine").
2016-07-31 04:30:48 +03:00
Paul Sokolovsky
eb0e3bab1e
tests/machine_mem.py: Too non-portable, rework as an example for unix port.
2016-07-31 04:22:09 +03:00
Paul Sokolovsky
4d22ade102
esp8266: Enable btree module.
2016-07-31 02:39:59 +03:00
Paul Sokolovsky
64ad838fde
esp8266/esp_mphal: Implement libc's errno.
...
Using __errno() function, and redirect it to use mp_stream_errno from
stream module. This is pre-requisite for integrating with 3rd-party libs,
like BerkeleyDB.
2016-07-31 02:30:05 +03:00
Paul Sokolovsky
617bda27e9
tests/extmod/btree1: Tests against in-memory DB (using io.BytesIO).
2016-07-31 02:29:05 +03:00
Paul Sokolovsky
aac9e8cfa3
unix/Makefile: And note why btree module is disabled for coverage build.
2016-07-31 02:27:13 +03:00
Paul Sokolovsky
99061d1dcb
extmod/modbtree: Switch to accepting stream object instead of filename.
...
Requires "embedded" BerkeleyDB BTree implementation.
2016-07-31 00:40:35 +03:00