mirror of
https://github.com/micropython/micropython.git
synced 2026-04-25 02:10:24 +02:00
docs/develop: Link to module docs, remove extraneous example code.
Small cleanup. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
committed by
Damien George
parent
50218dd2a8
commit
c9bb9250db
@@ -26,15 +26,9 @@ Implementing a core module
|
||||
--------------------------
|
||||
|
||||
Like CPython, MicroPython has core builtin modules that can be accessed through import statements.
|
||||
An example is the ``gc`` module discussed in :ref:`memorymanagement`.
|
||||
An example is the :mod:`gc` module discussed in :ref:`memorymanagement`.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
>>> import gc
|
||||
>>> gc.enable()
|
||||
>>>
|
||||
|
||||
MicroPython has several other builtin standard/core modules like ``io``, ``array`` etc.
|
||||
MicroPython has several other builtin standard/core modules like :mod:`io`, :mod:`array`, etc.
|
||||
Adding a new core module involves several modifications.
|
||||
|
||||
First, create the ``C`` file in the ``py/`` directory. In this example we are adding a
|
||||
|
||||
Reference in New Issue
Block a user