问题
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