Any way to install a module before compiling firmware? #11133
Replies: 4 comments
-
There are a few ways documented on the regular docs, https://docs.micropython.org/en/latest/develop/extendingmicropython.html?highlight=external%20c%20module Or are you looking for something else? |
Beta Was this translation helpful? Give feedback.
-
That's not quite what I'm looking for - probably easiest to give a concrete example. I'm building a binary image to flash to my device with all of my Python code baked in. I want to use the Microdot library so I want to install this into the source tree before building. If I were doing this at runtime it would be straightforward and well documented but I couldn't find any onfo on doing this at build time. |
Beta Was this translation helpful? Give feedback.
-
Keyword: 'Frozen modules' |
Beta Was this translation helpful? Give feedback.
-
Thanks @Josverl |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The title says it all really - I'm building firmware with a bunch of my own custom modules frozen in at build time and I was wonderingg if there's a way of installing an external module into the code before compiling. I had a search around but couldn't find anything obvious. Am I missing something? Obviously I could roll my own but wondered if there was anything built-in.
Beta Was this translation helpful? Give feedback.
All reactions