compile my *.py script to *.mpy and compile &.mpy into firmware

Discussion related to "under the hood" OpenMV topics.
weilian
Posts: 19
Joined: Fri Jan 10, 2020 2:36 am

compile my *.py script to *.mpy and compile &.mpy into firmware

Postby weilian » Fri Jan 10, 2020 2:43 am

enenene!
Last edited by weilian on Sun Mar 01, 2020 11:11 pm, edited 1 time in total.
User avatar
iabdalkader
Posts: 1193
Joined: Sun May 24, 2015 3:53 pm

Re: compile my *.py script to *.mpy and compile &.mpy into firmware

Postby iabdalkader » Fri Jan 10, 2020 7:08 am

You need to build the the firmware from source, clone the repository and just put your script in scripts/libraries/ and build.
weilian
Posts: 19
Joined: Fri Jan 10, 2020 2:36 am

Re: compile my *.py script to *.mpy and compile &.mpy into firmware

Postby weilian » Sat Jan 11, 2020 7:31 am

Can read my sourse just like code in openmvdisk?
Last edited by weilian on Sun Mar 01, 2020 11:15 pm, edited 2 times in total.
User avatar
kwagyeman
Posts: 4269
Joined: Sun May 24, 2015 2:10 pm

Re: compile my *.py script to *.mpy and compile &.mpy into firmware

Postby kwagyeman » Sat Jan 11, 2020 4:21 pm

?
Nyamekye,
weilian
Posts: 19
Joined: Fri Jan 10, 2020 2:36 am

Re: compile my *.py script to *.mpy and compile &.mpy into firmware

Postby weilian » Sat Jan 11, 2020 7:02 pm

I want hide my code
User avatar
iabdalkader
Posts: 1193
Joined: Sun May 24, 2015 3:53 pm

Re: compile my *.py script to *.mpy and compile &.mpy into firmware

Postby iabdalkader » Sat Jan 11, 2020 7:28 pm

It won't be readable like a .py, it will be bytecode, but it's not encrypted someone could decompile it.
weilian
Posts: 19
Joined: Fri Jan 10, 2020 2:36 am

Re: compile my *.py script to *.mpy and compile &.mpy into firmware

Postby weilian » Sat Jan 11, 2020 10:55 pm

OK! it is useful!Thank a lot!

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests