Flash microbit embedding a class .py file

ⅰ亾dé卋堺 提交于 2021-02-10 17:32:16

问题


Using BBC micro:bit with the scroll:bit pimoroni extension device, I need to embed the scrollbit.py file in my HEX file.

I use my favorite editor to produce my python file and uFlash to flash the micro:bit. For now I just copy the code from inside the scrollbit.py into my own python script. Is there any alternative without using Mu editor ?

Edit I found microfs and the ufs line command, I had to change my python script in main.py and transfer it to the microbit using :

ufs put scrollbit.py
ufs put main.py

来源:https://stackoverflow.com/questions/52782520/flash-microbit-embedding-a-class-py-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!