Compiled binary of micropython
-
- Posts: 4
- Joined: Sat Sep 21, 2019 4:33 pm
Compiled binary of micropython
How to compile the micropython .py file into a binary file and later import it to main.py?
- OlivierLenoir
- Posts: 126
- Joined: Fri Dec 13, 2019 7:10 pm
- Location: Picardie, FR
Re: Compiled binary of micropython
Look for mpy-cross, documentation is available here
Olivier Lenoir
https://gitlab.com/olivierlenoir
https://gitlab.com/olivierlenoir
-
- Posts: 4
- Joined: Sat Sep 21, 2019 4:33 pm
Re: Compiled binary of micropython
Thanks for the solution, I have created .mpy file in host computer, how to copy it to ESP32 board? Thonny only supports .py file to upload.
Re: Compiled binary of micropython
I've copied files other than .py with Thonny before. Using the file panel on the left, right-click the file you want to copy on the local drive at the top of the panel then and select Upload to / (or whatever the cwd of the device is).
Alternatively you can use WebREPL or the new mpremote CLI tool:
Alternatively you can use WebREPL or the new mpremote CLI tool:
Code: Select all
mpremote cp myfile.mpy :
John Sheehan
-
- Posts: 4
- Joined: Sat Sep 21, 2019 4:33 pm
Re: Compiled binary of micropython
how to add esp32 board micropython custom function with the micropython firmware (.bin)? How can we build custom micropython firmware?