File tree Expand file tree Collapse file tree 8 files changed +89
-5
lines changed Expand file tree Collapse file tree 8 files changed +89
-5
lines changed Original file line number Diff line number Diff line change 69
69
"array" : "CIRCUITPY_ARRAY" ,
70
70
# always available, so depend on something that's always 1.
71
71
"builtins" : "CIRCUITPY" ,
72
+ "busio.SPI" : "CIRCUITPY_BUSIO_SPI" ,
73
+ "busio.UART" : "CIRCUITPY_BUSIO_UART" ,
72
74
"collections" : "CIRCUITPY_COLLECTIONS" ,
73
75
"fontio" : "CIRCUITPY_DISPLAYIO" ,
74
76
"io" : "CIRCUITPY_IO" ,
77
+ "keypad.KeyMatrix" : "CIRCUITPY_KEYPAD_KEYMATRIX" ,
78
+ "keypad.Keys" : "CIRCUITPY_KEYPAD_KEYS" ,
79
+ "keypad.ShiftRegisterKeys" : "CIRCUITPY_KEYPAD_SHIFTREGISTERKEYS" ,
75
80
"os.getenv" : "CIRCUITPY_OS_GETENV" ,
76
81
"select" : "MICROPY_PY_USELECT_SELECT" ,
77
82
"sys" : "CIRCUITPY_SYS" ,
Original file line number Diff line number Diff line change 52
52
//| `!MOSI`, `!MISO`. Its up to the client to manage the appropriate
53
53
//| select line, often abbreviated `!CS` or `!SS`. (This is common because
54
54
//| multiple secondaries can share the `!clock`, `!MOSI` and `!MISO` lines
55
- //| and therefore the hardware.)"""
55
+ //| and therefore the hardware.)
56
+ //|
57
+ //| .. raw:: html
58
+ //|
59
+ //| <p>
60
+ //| <details>
61
+ //| <summary>Available on these boards</summary>
62
+ //| <ul>
63
+ //| {% for board in support_matrix_reverse["busio.SPI"] %}
64
+ //| <li> {{ board }}
65
+ //| {% endfor %}
66
+ //| </ul>
67
+ //| </details>
68
+ //| </p>
69
+ //|
70
+ //| """
56
71
//|
57
72
//| def __init__(
58
73
//| self,
Original file line number Diff line number Diff line change 44
44
// #define STREAM_DEBUG(...) mp_printf(&mp_plat_print __VA_OPT__(,) __VA_ARGS__)
45
45
46
46
//| class UART:
47
- //| """A bidirectional serial protocol"""
47
+ //| """A bidirectional serial protocol
48
+ //|
49
+ //| .. raw:: html
50
+ //|
51
+ //| <p>
52
+ //| <details>
53
+ //| <summary>Available on these boards</summary>
54
+ //| <ul>
55
+ //| {% for board in support_matrix_reverse["busio.UART"] %}
56
+ //| <li> {{ board }}
57
+ //| {% endfor %}
58
+ //| </ul>
59
+ //| </details>
60
+ //| </p>
61
+ //|
62
+ //| """
48
63
//|
49
64
//| def __init__(
50
65
//| self,
Original file line number Diff line number Diff line change 77
77
//|
78
78
//| Tutorial for UART:
79
79
//| https://learn.adafruit.com/circuitpython-essentials/circuitpython-uart-serial
80
+ //|
81
+ //| .. jinja
80
82
//| """
81
83
82
84
STATIC const mp_rom_map_elem_t busio_module_globals_table [] = {
Original file line number Diff line number Diff line change 35
35
#include "shared-bindings/util.h"
36
36
37
37
//| class KeyMatrix:
38
- //| """Manage a 2D matrix of keys with row and column pins."""
38
+ //| """Manage a 2D matrix of keys with row and column pins.
39
+ //|
40
+ //| .. raw:: html
41
+ //|
42
+ //| <p>
43
+ //| <details>
44
+ //| <summary>Available on these boards</summary>
45
+ //| <ul>
46
+ //| {% for board in support_matrix_reverse["keypad.KeyMatrix"] %}
47
+ //| <li> {{ board }}
48
+ //| {% endfor %}
49
+ //| </ul>
50
+ //| </details>
51
+ //| </p>
52
+ //|
53
+ //| """
39
54
//|
40
55
//| def __init__(
41
56
//| self,
Original file line number Diff line number Diff line change 35
35
#include "shared-bindings/util.h"
36
36
37
37
//| class Keys:
38
- //| """Manage a set of independent keys."""
38
+ //| """Manage a set of independent keys.
39
+ //|
40
+ //| .. raw:: html
41
+ //|
42
+ //| <p>
43
+ //| <details>
44
+ //| <summary>Available on these boards</summary>
45
+ //| <ul>
46
+ //| {% for board in support_matrix_reverse["keypad.Keys"] %}
47
+ //| <li> {{ board }}
48
+ //| {% endfor %}
49
+ //| </ul>
50
+ //| </details>
51
+ //| </p>
52
+ //|
53
+ //| """
39
54
//|
40
55
//| def __init__(
41
56
//| self,
Original file line number Diff line number Diff line change 35
35
#include "shared-bindings/util.h"
36
36
37
37
//| class ShiftRegisterKeys:
38
- //| """Manage a set of keys attached to an incoming shift register."""
38
+ //| """Manage a set of keys attached to an incoming shift register.
39
+ //|
40
+ //| .. raw:: html
41
+ //|
42
+ //| <p>
43
+ //| <details>
44
+ //| <summary>Available on these boards</summary>
45
+ //| <ul>
46
+ //| {% for board in support_matrix_reverse["keypad.ShiftRegisterKeys"] %}
47
+ //| <li> {{ board }}
48
+ //| {% endfor %}
49
+ //| </ul>
50
+ //| </details>
51
+ //| </p>
52
+ //|
53
+ //| """
39
54
//|
40
55
//| def __init__(
41
56
//| self,
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ const mp_obj_property_t keypad_generic_events_obj = {
89
89
//|
90
90
//| For more information about working with the `keypad` module in CircuitPython,
91
91
//| see `this Learn guide <https://learn.adafruit.com/key-pad-matrix-scanning-in-circuitpython>`_.
92
+ //|
93
+ //| .. jinja
92
94
//| """
93
95
94
96
STATIC mp_rom_map_elem_t keypad_module_globals_table [] = {
You can’t perform that action at this time.
0 commit comments