Paul Sokolovsky
0d8c22b122
docs/pyb.Pin: af_list() is a normal method, not a class method.
9 years ago
Paul Sokolovsky
8171995ee9
docs/pyb.CAN: Mark CAN.initfilterbanks() as classmethod explicitly.
9 years ago
Paul Sokolovsky
e918fc5e37
tests/bench: Add testcase to compare bytes(N) vs b"\0" * N.
Based on python-dev discussion regarding PEP467.
9 years ago
Paul Sokolovsky
bba77a2d01
docs/machine.Pin: Add class designator to all constants.
This makes rendered docs to not provide incorrect information and
consistent with how it's down for other machine classes.
9 years ago
Paul Sokolovsky
7d7243f44c
docs/machine.*: Use proper class case in method headers.
Class designator will be used as is in indexes, so must match actual class
name.
9 years ago
Paul Sokolovsky
93968bd6fb
docs/machine.UART: Cleanup pyboard section.
9 years ago
Paul Sokolovsky
0a4361ca67
docs/machine.Pin: Remove explicit target.
With currentmodule:: support, all targets should be generated properly by
Sphinx.
9 years ago
Paul Sokolovsky
0a4cc24b2e
docs/pyb.*: Add "currentmodule:: pyb" directive.
Makes sure that classes described in these separate files are properly
designated as belonging to "pyb" module in indexes.
9 years ago
Paul Sokolovsky
c8b7628094
docs/machine.*: Add "currentmodule:: machine" directive.
Makes sure that classes described in these separate files are properly
designated as belonging to "machine" module in indexes.
9 years ago
Paul Sokolovsky
2c5fc681c8
docs/library/machine.Pin: Mention GPIO and cross-link .value() function.
9 years ago
Paul Sokolovsky
6e2fa5237d
docs/usocket: There must be empty line after .only:: .
9 years ago
Paul Sokolovsky
9b18811951
docs/ure: Typo fix.
9 years ago
Paul Sokolovsky
753a965363
docs/esp.socket: Remove unused file.
9 years ago
Paul Sokolovsky
9487b80666
docs/library/network: wipy: Fix literal block indentation.
9 years ago
Damien George
b1533c4366
py/parse: Treat constants that start with underscore as private.
Assignments of the form "_id = const(value)" are treated as private
(following a similar CPython convention) and code is no longer emitted
for the assignment to a global variable.
See issue #2111 .
9 years ago
Damien George
2bf6eb9fe2
docs: Add link to PDF version of docs in sidebar.
Requires a link of the form: <BASEURL>/<lang>/<ver>/micropython-<port>.pdf
9 years ago
puuu
ee12581a35
esp8266: Let RTC work correctly after deepsleep.
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
9 years ago
Georgia Reh
eb78a5c530
teensy: Update the README with OSX specific information and tips.
9 years ago
Stefan Hölzl
c8332a5463
stmhal: Add board definition files for Olimex STM32-E407.
9 years ago
Ben Hagen
0b913bd09f
docs/esp8266/tutorial/network_basics: Minor typo fix, ap becomes ap_if.
9 years ago
Mark
822e9ca8f3
esp8266/modnetwork: Use struct bss_info::ssid_len for ESSID length.
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.
9 years ago
Paul Sokolovsky
a1a261d8e8
tests/recursive_iternext: Clang/Linux is even more stack-frugal than MacOS.
9 years ago
Damien George
9b39263b11
docs: Bump version to 1.8.1.
9 years ago
Damien George
97ce5d1d77
tests/pyb/rtc: Make RTC test on pyboard more reliable by calling init().
9 years ago
Damien George
7d60a97914
tests/misc/recursive_iternext: Provide more fine-grained selection of N.
To work on a variety of ports the selection of N is very specific.
9 years ago
puuu
3f6ca4b22c
docs/esp8266/general: Add note about RTC overflow.
9 years ago
puuu
cafdfb7af3
esp8266/modpybrtc: Handle RTC overflow.
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.
9 years ago
Tobias Badertscher
1191ec6a14
stmhal/uart.c: Fix wrong baudrate calculation for stm32l4 series.
9 years ago
Radomir Dopieralski
43c8f545d2
drivers/display/ssd1306: update SSD1306_SPI to work with new API
Makes it work on the ESP8266.
9 years ago
Damien George
ddadbaed06
tests/misc/recursive_iternext.py: Increase depth N from 1000 to 2000.
This makes the test reliably overflow the recursion limit (which is the
correct behaviour) on Mac OS X.
9 years ago
Paul Sokolovsky
1bc8aa85a4
lib/timeutils/timeutils: Fix pedantic warning in coverage build.
9 years ago
Paul Sokolovsky
993cc3611a
lib/timeutils/timeutils: timeutils_mktime may accept negative time values.
And will normalize them.
9 years ago
Paul Sokolovsky
d8cc51ea2b
docs/esp8266/quickref: Update WebREPL section for 1.8.1 release.
WebREPL is much more stable now.
9 years ago
Damien George
ed4e5d2583
docs/library/index: Fix grammar and spelling in intro paragraph.
9 years ago
Marcel Stör
0b9725812e
docs/wipy/tutorial: Add note about screen key bindings on OS X.
9 years ago
Paul Sokolovsky
e456b2cc94
docs/README: Add some hints for PDF docs generation.
9 years ago
Paul Sokolovsky
09f764dc04
docs/library/index: Add intro paragraph regarding availability of modules.
This introductions makes explicit the fact that whenever possible,
the documentation describes full MicroPython functionality, and arbitrary
functions/classes/modules may be missing in a paricular port or build.
9 years ago
Paul Sokolovsky
9a1a49ceec
esp8266/general: Typo/grammar fixes.
9 years ago
Paul Sokolovsky
fdf45a718b
esp8266/quickref: Use local image of Adafruit Huzzah board.
Using remote image causes problems with tools (partly because the image
is semi-firewalled and can't be accessed by arbitrary tools).
9 years ago
Paul Sokolovsky
c4ab8895e8
docs: math, cmath: Add port availability information.
9 years ago
Paul Sokolovsky
1a05a59116
docs/math: Typo fix.
9 years ago
Damien George
927388e80e
esp8266: Provide a dedicated variable to disable ets_loop_iter.
So ets_loop_iter is now only disabled when using machine.disable_irq.
9 years ago
Damien George
752e952096
esp8266/rtc: Set RTC user memory length to 0 on first boot.
So that RTC.memory() returns b'' on power up if it was never set.
Fixes issue #2138 .
9 years ago
Robert HH
4f3fbf09cc
esp8266/moduos.c: Add stat() to the module uos of esp8266.
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.
9 years ago
Paul Sokolovsky
15eb1ce52d
esp8266: Enable MICROPY_PY_IO_FILEIO to get compliant text/binary streams.
9 years ago
Damien George
33168081f4
extmod/machine: Add MICROPY_PY_MACHINE_PULSE config for time_pulse_us.
Since not all ports that enable the machine module have the pin HAL
functions.
9 years ago
Damien George
cff2b7a6e3
esp8266/modmachine: Add machine.time_pulse_us function.
9 years ago
Damien George
93a9c2e840
docs/library/machine: Add documentation for machine.time_pulse_us.
9 years ago
Damien George
4940bee62a
extmod: Add machine time_pulse_us function (at C and Python level).
The C implementation is taken from the DHT driver.
9 years ago
Paul Sokolovsky
298c2ae2c7
extmod/vfs_fat: Mark anused "self" arg for fat_vfs_stat().
9 years ago