Search found 2 matches

by Pytri
Sat Nov 14, 2020 7:06 am
Forum: Development of MicroPython
Topic: how to decompile bytecode into human readable format
Replies: 15
Views: 14043

Re: how to decompile bytecode into human readable format

jickster wrote:
Mon Oct 02, 2017 8:54 pm
I used the mpy-cross utility to turn a .py into a bytecode .mpy file.

Is it possible to decompile the .mpy into human readable format?
Give a try to Python Decompiler Online. It works for .pyc files.
by Pytri
Fri Nov 13, 2020 7:53 pm
Forum: General Discussion and Questions
Topic: How to read a file using C language
Replies: 6
Views: 3159

Re: How to read a file using C language

I'm currently using MicroPython to develop esp32 board. Now I need to read a file in flash in main.c. How could I do this? Could anybody show me an example? Thanks You can use mp_vfs_open (see extmod/vfs.h) to open the file which will return a stream object, that you can use mp_stream_rw (or mp_str...