I like the simplicity of starting the code I want to run by referencing it in boot.py.
Now I'm wondering if there is a way to start code that resides on the uSD-card? Something like:
pyb.main('sd/my_code.py')
start code from uSD?
Re: start code from uSD?
Replying to myself:
accellog.py located in the source-code example folder suggests that 1:/ is used for SD and 0:/ is used for internal flash.
Will try when I get home tonight.
accellog.py located in the source-code example folder suggests that 1:/ is used for SD and 0:/ is used for internal flash.
Will try when I get home tonight.
Re: start code from uSD?
If you have a SD card in the slot the board will start from it like it was the internal memory. That is it will run boot.py from the SD card when it start or get reseted.