microbit-foundation / micropython-microbit-v2

Temporary home for MicroPython for micro:bit v2 as we stablise it before pushing upstream
MIT License
44 stars 25 forks source link

How do we embed custom frozen modules into the v2 firmware? #157

Closed z-zawhtet-a closed 1 year ago

z-zawhtet-a commented 1 year ago

Hi,

For microbit v1, I can do so by following the steps described here https://github.com/bbcmicrobit/micropython/issues/555#issuecomment-419491671. Are there similar steps that I can follow for the v2 firmware?

Thank you!

dpgeorge commented 1 year ago

You can add your frozen code to src/codal_port/manifest.py and rebuild.

z-zawhtet-a commented 1 year ago

Thanks much! It works!