title |
---|
Adding a C/C++ Module to MaixPy |
Sometimes we need to execute a function efficiently, and the speed of Python cannot meet the requirements. In such cases, we can use C/C++ or other compiled languages to implement the function.
If the function you want to encapsulate does not depend on other functionalities of MaixPy, you can directly use the general method of adding C/C++ modules with Python, such as ffi, ctype, etc. You can search for relevant methods online.
Welcome to contribute methods via PR
Method One: Directly Modify MaixPy Firmware, Refer to Viewing MaixPy API Source Code for guidance.