Skip to content

Commit dd5f941

Browse files
authored
Merge branch 'adafruit:main' into main
2 parents 02e115c + 18cee2e commit dd5f941

File tree

29 files changed

+501
-275
lines changed

29 files changed

+501
-275
lines changed

docs/design_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ following structure:
309309
310310
param_type
311311
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312-
The type of the parameter. This could be among other `int`, `float`, `str` `bool`, etc.
312+
The type of the parameter. This could be, among others, ``int``, ``float``, ``str``, ``bool``, etc.
313313
To document an object in the CircuitPython domain, you need to include a ``~`` before the
314314
definition as shown in the following example:
315315

docs/library/builtins.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
:mod:`builtins` -- builtin functions and exceptions
22
===================================================
33

4+
.. module:: builtins
5+
:synopsis: builtin Python functions
6+
47
All builtin functions and exceptions are described here. They are also
5-
available via ``builtins`` module.
8+
available via the ``builtins`` module.
69

710
For more information about built-ins, see the following CPython documentation:
811

docs/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Classes
2828

2929
- The optional *flags* can be 1 to check for overflow when adding items.
3030

31-
As well as supporting `bool` and `len`, deque objects have the following
31+
As well as supporting ``bool`` and ``len``, deque objects have the following
3232
methods:
3333

3434
.. method:: deque.append(x)

docs/library/micropython.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Functions
7676
.. function:: heap_locked()
7777

7878
Lock or unlock the heap. When locked no memory allocation can occur and a
79-
`MemoryError` will be raised if any heap allocation is attempted.
79+
``MemoryError`` will be raised if any heap allocation is attempted.
8080
`heap_locked()` returns a true value if the heap is currently locked.
8181

8282
These functions can be nested, ie `heap_lock()` can be called multiple times

docs/shared_bindings_matrix.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,23 @@
5656
}
5757

5858
ADDITIONAL_MODULES = {
59-
"fontio": "CIRCUITPY_DISPLAYIO",
60-
"terminalio": "CIRCUITPY_DISPLAYIO",
59+
"_asyncio": "MICROPY_PY_UASYNCIO",
6160
"adafruit_bus_device": "CIRCUITPY_BUSDEVICE",
6261
"adafruit_pixelbuf": "CIRCUITPY_PIXELBUF",
62+
"array": "CIRCUITPY_ARRAY",
63+
# always available, so depend on something that's always 1.
64+
"builtins": "CIRCUITPY",
65+
"collections": "CIRCUITPY_COLLECTIONS",
66+
"fontio": "CIRCUITPY_DISPLAYIO",
67+
"io": "CIRCUITPY_IO",
68+
"select": "MICROPY_PY_USELECT_SELECT",
69+
"terminalio": "CIRCUITPY_DISPLAYIO",
70+
"sys": "CIRCUITPY_SYS",
6371
"usb": "CIRCUITPY_USB_HOST",
6472
}
6573

74+
MODULES_NOT_IN_SHARED_BINDINGS = ["_asyncio", "array", "binascii", "builtins", "collections", "errno", "json", "re", "select", "sys", "ulab"]
75+
6676
FROZEN_EXCLUDES = ["examples", "docs", "tests", "utils", "conf.py", "setup.py"]
6777
"""Files and dirs at the root of a frozen directory that should be ignored.
6878
This is the same list as in the preprocess_frozen_modules script."""
@@ -82,7 +92,7 @@ def get_shared_bindings():
8292
""" Get a list of modules in shared-bindings based on folder names.
8393
"""
8494
shared_bindings_dir = get_circuitpython_root_dir() / "shared-bindings"
85-
return [item.name for item in shared_bindings_dir.iterdir()] + ["binascii", "errno", "json", "re", "ulab"]
95+
return [item.name for item in shared_bindings_dir.iterdir()] + MODULES_NOT_IN_SHARED_BINDINGS
8696

8797

8898
def get_board_mapping():

0 commit comments

Comments
 (0)