Page 1 of 1

How to add my own python module to micropython hex file?

Posted: Tue Jan 08, 2019 1:07 am
by jarda
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?

Posted: Wed Jan 09, 2019 6:42 pm
by jickster
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