69
69
"array" : "CIRCUITPY_ARRAY" ,
70
70
# always available, so depend on something that's always 1.
71
71
"builtins" : "CIRCUITPY" ,
72
+ "builtins.pow3" : "CIRCUITPY_BUILTINS_POW3" ,
73
+ "busio.SPI" : "CIRCUITPY_BUSIO_SPI" ,
74
+ "busio.UART" : "CIRCUITPY_BUSIO_UART" ,
72
75
"collections" : "CIRCUITPY_COLLECTIONS" ,
73
76
"fontio" : "CIRCUITPY_DISPLAYIO" ,
74
77
"io" : "CIRCUITPY_IO" ,
78
+ "keypad.KeyMatrix" : "CIRCUITPY_KEYPAD_KEYMATRIX" ,
79
+ "keypad.Keys" : "CIRCUITPY_KEYPAD_KEYS" ,
80
+ "keypad.ShiftRegisterKeys" : "CIRCUITPY_KEYPAD_SHIFTREGISTERKEYS" ,
81
+ "os.getenv" : "CIRCUITPY_OS_GETENV" ,
75
82
"select" : "MICROPY_PY_USELECT_SELECT" ,
76
- "terminalio" : "CIRCUITPY_DISPLAYIO" ,
77
83
"sys" : "CIRCUITPY_SYS" ,
84
+ "terminalio" : "CIRCUITPY_DISPLAYIO" ,
78
85
"usb" : "CIRCUITPY_USB_HOST" ,
79
86
}
80
87
81
- MODULES_NOT_IN_BINDINGS = [
82
- "_asyncio" ,
83
- "array" ,
84
- "binascii" ,
85
- "builtins" ,
86
- "collections" ,
87
- "errno" ,
88
- "json" ,
89
- "re" ,
90
- "select" ,
91
- "sys" ,
92
- "ulab" ,
93
- ]
88
+ MODULES_NOT_IN_BINDINGS = [ "binascii" , "errno" , "json" , "re" , "ulab" ]
94
89
95
90
FROZEN_EXCLUDES = ["examples" , "docs" , "tests" , "utils" , "conf.py" , "setup.py" ]
96
91
"""Files and dirs at the root of a frozen directory that should be ignored.
@@ -117,7 +112,7 @@ def get_bindings():
117
112
bindings_modules = []
118
113
for d in get_circuitpython_root_dir ().glob ("ports/*/bindings" ):
119
114
bindings_modules .extend (module .name for module in d .iterdir () if d .is_dir ())
120
- return shared_bindings_modules + bindings_modules + MODULES_NOT_IN_BINDINGS
115
+ return shared_bindings_modules + bindings_modules + MODULES_NOT_IN_BINDINGS + list ( ADDITIONAL_MODULES . keys ())
121
116
122
117
123
118
def get_board_mapping ():
0 commit comments