Paul Sokolovsky
bae62d9abe
lib/utils/pyexec: qstr_pool_info() requires size_t* parameters.
2016-08-30 00:58:42 +03:00
Damien George
76dcaddc0f
docs/esp8266/quickref: Add internal links to docs for some modules.
2016-08-29 17:40:36 +10:00
Damien George
efc904c41d
docs/pyboard/quickref: Add section on "delay and timing" for utime mod.
...
And remove reference to deprecated pyb.delay() and pyb.millis().
2016-08-29 17:33:02 +10:00
Damien George
5c3a2f162e
docs/pyboard/quickref: Add links to pinouts for other pyboard variants.
2016-08-29 17:32:38 +10:00
Krzysztof Blazewicz
d1a366fdd4
.gitignore: Add *.pyc, because Python 2 doesn't use __pycache__.
2016-08-29 15:40:00 +10:00
Philip Potter
c777b6950e
stmhal: Update boot.py files to use VCP instead of CDC.
2016-08-29 15:17:34 +10:00
Philip Potter
0f8b1ba8a2
docs/library: Add reference for pyb.usb_mode and pyb.USB_HID.
2016-08-29 15:17:20 +10:00
Philip Potter
f2da6467a9
docs/pyboard: Update USB mouse tutorial to use pyb.USB_HID().
2016-08-29 15:16:51 +10:00
Philip Potter
57c92d90b0
docs/pyboard: Update USB mouse tutorial to use VCP instead of CDC.
2016-08-29 15:15:25 +10:00
Damien George
13c5a228c9
docs/esp8266: Update quickref and tutorial for OneWire/DS18X20 driver.
2016-08-29 12:52:50 +10:00
Damien George
59a9509703
esp8266/modules/ds18x20.py: Add support for DS18S20 devices.
2016-08-29 12:45:07 +10:00
Damien George
8e9b98e974
esp8266/modules/onewire: Change onewire.read() to onewire.readinto().
...
This allows 1-wire drivers (eg DS18X20) to perform in-place operations and
hence do less memory allocations.
2016-08-29 12:27:21 +10:00
Damien George
9fba618356
esp8266/modules: Split onewire.py into OneWire and DS18X20 driver.
...
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-29 12:12:49 +10:00
Radomir Dopieralski
ed0a06a93f
docs/esp8266/quickref: Fix and update the SPI docs
...
Use the `SPI` factory function in the examples, and use
proper baud rate of 80 000 000.
2016-08-28 23:14:45 +10:00
Paul Sokolovsky
263aaa7030
esp8266/modmachinewdt: Implement machine.WDT class.
2016-08-28 14:48:49 +03:00
Damien George
8f8f699eb7
tests/run-tests: Disable thread_gc1.py test on Travis.
...
It has reliability issues (cause unknown at this time).
2016-08-27 23:41:16 +10:00
Damien George
f4ee9f8853
py/bc.h: Rename _mp_code_state to _mp_code_state_t.
...
This rename was missed in the previous patch.
2016-08-27 23:23:51 +10:00
Damien George
581a59a456
py: Rename struct mp_code_state to mp_code_state_t.
...
Also at _t to mp_exc_stack pre-declaration in struct typedef.
2016-08-27 23:21:00 +10:00
Damien George
531217a06b
extmod/modframebuf: Fix pixel accessor to return a 1-bit result.
2016-08-27 18:31:58 +10:00
Radomir Dopieralski
fea7fe45ea
tests/extmod/vfs_fat_ramdisk: Add tests for VFS.umount()
...
Try to un-mount a file system and re-mount it again.
2016-08-26 23:24:32 +03:00
Damien George
26295e04ff
py/emitglue: Use more compact mp_raise_ValueError function.
2016-08-26 23:45:07 +10:00
Damien George
fe3cc5bb53
py/modstruct: Use more compact mp_raise_ValueError function.
...
Saves a few bytes of code size.
2016-08-26 23:42:40 +10:00
Damien George
3b5affa0d1
tests/cmdline: Add test for -O option to check optimisation value.
2016-08-26 22:29:38 +10:00
Damien George
24df30c133
py/compile: Don't compile assert statements when optimisations enabled.
...
As per CPython.
2016-08-26 22:28:22 +10:00
Krzysztof Blazewicz
fc73c9b4b2
stmhal/modusocket: set self->nic to MP_OBJ_NULL after socket close
...
This patch makes second and next calls to <socket>.close() a no-op.
It prevents GC from closing the underlying resource after user
already used <socket>.close() explicitly.
fixes #2355
2016-08-26 10:57:32 +02:00