6969 "array" : "CIRCUITPY_ARRAY" ,
7070 # always available, so depend on something that's always 1.
7171 "builtins" : "CIRCUITPY" ,
72+ "builtins.pow3" : "CIRCUITPY_BUILTINS_POW3" ,
73+ "busio.SPI" : "CIRCUITPY_BUSIO_SPI" ,
74+ "busio.UART" : "CIRCUITPY_BUSIO_UART" ,
7275 "collections" : "CIRCUITPY_COLLECTIONS" ,
7376 "fontio" : "CIRCUITPY_DISPLAYIO" ,
7477 "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" ,
7582 "select" : "MICROPY_PY_USELECT_SELECT" ,
76- "terminalio" : "CIRCUITPY_DISPLAYIO" ,
7783 "sys" : "CIRCUITPY_SYS" ,
84+ "terminalio" : "CIRCUITPY_DISPLAYIO" ,
7885 "usb" : "CIRCUITPY_USB_HOST" ,
7986}
8087
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" ]
9489
9590FROZEN_EXCLUDES = ["examples" , "docs" , "tests" , "utils" , "conf.py" , "setup.py" ]
9691"""Files and dirs at the root of a frozen directory that should be ignored.
@@ -117,7 +112,7 @@ def get_bindings():
117112 bindings_modules = []
118113 for d in get_circuitpython_root_dir ().glob ("ports/*/bindings" ):
119114 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 ())
121116
122117
123118def get_board_mapping ():
0 commit comments