MicroPython imports a binary format class library through the import
directive?
#14481
-
MicroPython imports a binary format class library through the MicroPython 通过 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
CPython does this via ctypes. The equivalent library in MicroPython is uctypes. Unfortunately this does not have |
Beta Was this translation helpful? Give feedback.
-
If you have access to the C/C++ code, you can build a dynamic native module. This can be built separately from main firmware, copied to device and loaded at runtime. See the documentation https://docs.micropython.org/en/latest/develop/natmod.html#supported-features-and-limitations and the examples https://github.com/micropython/micropython/tree/master/examples/natmod |
Beta Was this translation helpful? Give feedback.
If you have access to the C/C++ code, you can build a dynamic native module. This can be built separately from main firmware, copied to device and loaded at runtime. See the documentation https://docs.micropython.org/en/latest/develop/natmod.html#supported-features-and-limitations and the examples https://github.com/micropython/micropython/tree/master/examples/natmod