[Microbit-Python] importing modules using uflash

Nicholas H.Tollervey ntoll at ntoll.org
Mon Sep 12 03:21:12 EDT 2016


Hi,

The documentation you seek is here:

https://microbit-micropython.readthedocs.io/en/latest/tutorials/storage.html
(high level overview)

https://microfs.readthedocs.io/en/latest/ (the utility Mu uses to
interact with the filesystem)

Get latest Mu from here:

http://codewith.mu/

See especially this:
https://microbit-micropython.readthedocs.io/en/latest/tutorials/storage.html#mainly-main-py

Hope this helps,

N.



On 11/09/16 12:47, hot.toast via Microbit wrote:
> So as i understand it,
> 
> 1. uFlash is limited to python scripts that contain all the local
> function and class definitions. The only imports that are allowed are
> those from the microbit version of micropython.
> 
> 2. If I want to import  "mymodule.py" from a file on my local hard
> drive, I will have to use the latest version of the mu editor...
> 
> 
> 
> 
> 
> 
> On 11/09/16 12:19, David Whale wrote:
>> Make sure you use the most up to date version of Mu though to do this, as
>> it was a feature that was added reasonably recently. The version of Mu in
>> the Raspberry Pi repo's is still out of date at the moment, and might not
>> have this feature included yet.
>>
>>>
>>>
>>
>>
>> _______________________________________________
>> Microbit mailing list
>> Microbit at python.org
>> https://mail.python.org/mailman/listinfo/microbit
> 
> 
> 
> 
> _______________________________________________
> Microbit mailing list
> Microbit at python.org
> https://mail.python.org/mailman/listinfo/microbit
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/microbit/attachments/20160912/a2626ff1/attachment.sig>


More information about the Microbit mailing list