mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
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.
28 lines
534 B
ReStructuredText
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
|