Files
pybricks-api/doc/main/micropython/micropython.rst
T
Laurens Valk 4c00c3209b micropython.const: Improve docstring, add example.
This merges the useful information from two different places:
- The original docstring for const.
- Writing MicroPython code for constrained devices.

Also reduce type to just int, because only ints are supported.
2021-07-14 14:48:59 +02:00

28 lines
534 B
ReStructuredText

:mod:`micropython` -- MicroPython internals
===========================================
.. automodule:: micropython
:no-members:
.. autofunction:: micropython.const
.. autofunction:: micropython.opt_level
.. autofunction:: micropython.mem_info
.. autofunction:: micropython.qstr_info
.. autofunction:: micropython.stack_use
.. autofunction:: micropython.kbd_intr
Examples
---------------------
Using constants for efficiency
******************************
.. literalinclude::
../../../examples/micropython/const.py