How to add my own python module to micropython hex file?
How to add my own python module to micropython hex file?
I know how to build micropython for microbit and how to add my own python program to it. It is executed if there is not main.py in microbit flash storage. I know that there exists a way how to add C module which could be used with python program. But is there a way how to add precompiled python module which could be imported later with another python program?
Re: How to add my own python module to micropython hex file?
When you say precompiled do you mean
.c -> .obj (compile c-code to binary)
or
.py -> .mpy (compile python source to byte-code)
?
Sent from my iPhone using Tapatalk Pro
.c -> .obj (compile c-code to binary)
or
.py -> .mpy (compile python source to byte-code)
?
Sent from my iPhone using Tapatalk Pro