summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2019-03-14docs/esp32: Add a note to quickref about use of Pin.PULL_HOLD.Damien George
2019-03-14docs/library/machine.Pin: Add PULL_HOLD constant to possible pin pulls.Damien George
As already mentioned in the docs, not all constants may be available on all ports, so this is optional to implement.
2019-03-13docs/develop: Fix typos in C-module example for example_add_ints.Martin Fischer
2019-03-13docs/pyboard: Make pyboard v1.1 pinout the default shown in quickref.johnthagen
2019-03-13docs/pyboard: Add link to pyboard v1.1 schematic and layout PDF.johnthagen
2019-03-08py: Update and rework build system for including external C modules.Andrew Leech
How to use this feature is documented in docs/develop/cmodules.rst.
2019-03-08py: Implement a module system for external, user C modules.Ayke van Laethem
This system makes it a lot easier to include external libraries as static, native modules in MicroPython. Simply pass USER_C_MODULES (like FROZEN_MPY_DIR) as a make parameter.
2019-02-26docs/uos: Document extra requirements on stream objs passed to dupterm.Yonatan Goldschmidt
This is only correct for the extmod/uos_dupterm.c implementation however, as e.g cc3200 implementation does the mp_load_method() itself, and anyway requires `read` instead of `readinto`.
2019-02-12all: Change PYB message prefix to MPY.Mike Causer
Replaces "PYB: soft reboot" with "MPY: soft reboot", etc. Having a consistent prefix across ports reduces the difference between ports, which is a general goal. And this change won't break pyboard.py because that tool only looks for "soft reboot".
2019-02-08docs/ure: Fix match.group signature to indicate index param is required.Yonatan Goldschmidt
2019-01-30docs: Convert all cases of machine.sleep to machine.lightsleep.Damien George
2019-01-27docs/machine: Change sleep to lightsleep and add timeout arguments.Damien George
The machine.sleep() function can be misleading because it clashes with time.sleep() which has quite different semantics. So change it to machine.lightsleep() which shows that it is closer in behaviour to machine.deepsleep(). Also, add an optional argument to these two sleep functions to specify a maximum time to sleep for. This is a common operation and underlying hardware usually has a special way of performing this operation. The existing machine.sleep() function will remain for backwards compatibility purposes, and it can simply be an alias for machine.lightsleep() without arguments. The behaviour will be the same.
2019-01-26all: Bump version to 1.10.v1.10Damien George
2019-01-25docs/library: Add documentation for esp32 module.Damien George
2019-01-25docs: Add initial docs for esp32 port, including quick-ref and general.Matt Trentini
With contributions from Oliver Robson (@HowManyOliversAreThere), Sean Lanigan (@seanlano) and @rprr.
2019-01-11docs/differences: Clarify the differences are against Python 3.4.stijn
2018-12-13docs/ure: Fully describe supported syntax subset, add example.Paul Sokolovsky
2018-12-11docs/README: Remove references to MICROPY_PORT when building docs.Damien George
The docs are now built as one for all ports.
2018-10-23docs/conf.py: Use https for intersphinx link to docs.python.org.Paul Sokolovsky
To get rid of warning when building the docs saying there's a redirect from http: to https:.
2018-10-23docs/library/uctypes: Add examples and make general updates.Paul Sokolovsky
Examples are added to the beginning of the module docs, similarly to docs for many other modules. Improvements to grammar, style, and clarity. Some paragraphs are updated with better suggestions. A warning added of the effect incorrect usage of the module may have. Describe the fact that offset range used in one defined structure is limited.
2018-10-19docs/pyb.Pin: Minor typo fix to specify Pin in pyb.Pin.cpu.Dave Hylands
2018-10-18docs/uio: Document StringIO/BytesIO(alloc_size) constructors.Paul Sokolovsky
2018-10-15docs/machine.Pin: Document "hard" argument of Pin.irq method.Peter Hinch
2018-10-13docs/machine.Pin: Add note regarding irq handler argument.Peter Hinch
2018-10-13lib/utils/pyexec: Forcefully unlock the heap if locked and REPL active.Damien George
Otherwise there is really nothing that can be done, it can't be unlocked by the user because there is no way to allocate memory to execute the unlock. See issue #4205 and #4209.
2018-10-05docs/uselect: Describe more aspects of poll.register/modify behavior.Paul Sokolovsky
E.g., register() can be called again for the same object, while modify() will raise exception if object was not register()ed before.
2018-10-01docs/wipy: Fix links to network.Server, and markup for boot.py.Damien George
2018-10-01docs: Remove sphinx_selective_exclude, it's no longer used.Damien George
2018-10-01docs: Unify all the ports into one set of documentation.Damien George
With this commit there is now only one entry point into the whole documentation, which describes the general MicroPython language, and then from there there are links to information about specific platforms/ports. This commit doesn't change content (almost, it does fix a few internal links), it just reorganises things.
2018-09-27docs/library/network: Make AbstractNIC methods layout correctly.Damien George
2018-09-27docs/library/network: Move specific network classes to their own file.Damien George
All concrete network classes are now moved to their own file (eg network.WLAN.rst) and deconditionalised (remove ..only:: directives). This makes the network documentation the same for all ports. After this change there are no more "..only::" directives for different ports, and the only difference among ports is the very front page of the docs.
2018-09-26docs/library/machine.SPI: Add note about baudrate imprecision.Peter Hinch
2018-09-20docs/pyboard: Fix to use Sphinx style for internal/external links.Damien George
2018-09-20docs/library/pyb: Add deprecation warning for mount and old block proto.Peter Hinch
pyb.mount(None, mountpoint) functionality is also removed and replaced by uos.umount.
2018-08-14docs/library/machine.UART.rst: Specify optional txbuf and rxbuf args.Damien George
If a port would like to expose the configuration of transmit and/or receive buffers then it can use these arguments.
2018-08-04docs/library/machine.I2C.rst: Clarify availability of primitive I2C ops.Peter Hinch
2018-07-31docs: Move WiPy specific Timer class to separate doc file.Damien George
The WiPy machine.Timer class is very different to the esp8266 and esp32 implementations which are better candidates for a general Timer class. By moving the WiPy Timer docs to a completely separate file, under a new name machine.TimerWiPy, it gives a clean slate to define and write the docs for a better, general machine.Timer class. This is with the aim of eventually providing documentation that does not have conditional parts to it, conditional on the port. While the new docs are being defined it makes sense to keep the WiPy docs, since they describe its behaviour. Once the new Timer behaviour is defined the WiPy code can be changed to match it, and then the TimerWiPy docs would be removed.
2018-07-20docs/library/machine: Remove conditionals in machine class index.Damien George
The machine module should be standard across all ports so should have the same set of classes in the docs. A special warning is added to the top of the machine.SD class because it is not standardised and only available on the cc3200 port.
2018-07-20docs/reference/index: Remove conditional for inline asm docs.Damien George
The heading of this section makes it clear it is for Thumb-2 architectures only.
2018-07-20docs/library/index: Add hint about using help('modules') for discovery.Damien George
2018-07-20docs/library/index: Remove all conditionals from library index.Damien George
It's fair to just provide a link to all available modules, regardless of the port. Most of the existing ports (unix, stm32, esp8266, esp32) share most of the same set of modules anyway, so no need to maintain separate lists for them. And there's a big discussion at the start of this index about modules not being available on a given port. For port-specific modules, they can also be listed unconditionally because they have headings that explicitly state they are only available on certain ports.
2018-07-18docs/library/machine: Remove conditional docs for rng function.Damien George
And instead list its availability explicitly.
2018-07-18docs/library/machine: Remove conditional docs for wake_reason function.Damien George
And instead list its availability explicitly.
2018-07-18docs/library/machine.UART: Remove conditional docs for wipy port.Damien George
The UART.init() method is now included unconditionally and its wording adjusted to better describe ports other than the cc3200. UART.irq() is also included unconditionally, but this is currently only available on the WiPy target.
2018-07-18docs/library/pyb.DAC: Fix typo in markup to balance quotes.Damien George
2018-07-18docs/library: Remove "only" directive from all pyb module docs.Damien George
By virtue of its name, the pyb module would only be available on a pyboard and so does not need to have conditional "only" directives throughout its documentation. These conditionals were added mostly in cfcf47c0644952358e1a260db159e807872a37e6 in the initial development of the cc3200 port, which had the pyb module before it switched to the machine module. And wipy only conditionals were removed from the pyb module documentation in 4542643025c77a7272bde348b89d5039aea28d23, so there's no need to retain any more conditionals.
2018-07-10docs/pyboard: For latex build, use smaller quickref jpg, and no gifs.Damien George
The latexpdf target needs images that fit on the page, and does not support gifs.
2018-07-02docs/ure: Document some more supported regex operators.Damien George
2018-07-02docs/ure: Document sub(), groups(), span(), start() and end().Damien George
2018-06-28docs/uos: Make it clear that block device block_num param is an index.Damien George