convert .py to mpy

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
nayanagg
Posts: 11
Joined: Mon May 03, 2021 8:26 pm

convert .py to mpy

Post by nayanagg » Tue Jun 08, 2021 6:40 am

Hi,

How to convert .py files to .mpy files in Pi PICO

hippy
Posts: 130
Joined: Sat Feb 20, 2021 2:46 pm
Location: UK

Re: convert .py to mpy

Post by hippy » Wed Jun 09, 2021 10:43 am

As simple as -

Code: Select all

mpy-cross file.py
If 'mpy-cross' isn't in your path you will need to use something like -

Code: Select all

~/pico/micropython/mpy-cross/mpy-cross file.py

Post Reply