Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .mpy support #1876

Open
The-Bow-Hunter opened this issue Jun 24, 2021 · 3 comments
Open

Add .mpy support #1876

The-Bow-Hunter opened this issue Jun 24, 2021 · 3 comments
Milestone

Comments

@The-Bow-Hunter
Copy link

Add the support to encode to mpy and easily send them to the board.

So far it is necessary to create those by yourself, then locate it on the left and then send it to the board. It would be easier if it could be done simular to open and then just be send over, or to even have the possibility to save python files as mpy using save as.

@aivarannamaa
Copy link
Member

Thank you for the suggestion!

I've considered this and I'll keep it in my TODO list.

@aivarannamaa
Copy link
Member

When implementing this, https://pypi.org/project/mpy-cross/ will be probably useful.

Note, that the task is not trivial, though, as different MicroPython version may require different versions of mpy-cross and different boards may require different parameters for inline assembler etc.

@veni-vidi-code
Copy link

https://github.com/micropython/micropython/tree/master/mpy-cross
Could be useful aswell if you prefer to build it yourself to be able to tweek it

@aivarannamaa aivarannamaa added this to the 4.1 milestone Aug 1, 2021
@aivarannamaa aivarannamaa modified the milestones: 5.0.0, 5.x Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants