I need to move a scratch built micro-python library programme into the thonny library but am not having much success. Can any one help please?
Toni
I need to move a scratch built micro-python library programme into the thonny library but am not having much success. Can any one help please?
Toni
Hi Toni,
With the ‘Files’ tab open, you should be able to navigate to the directory where you have your library stored.
Then with the micropython device initialised you’ll be able to right click and download the library to the device.
Jaryd covers all of this in the Pico workshop video here: https://youtu.be/GwMXniz4KgE?feature=shared&t=424
Note it will also work for other micropython devices like the ESP32
Liam
Thanks Liam, oops! I hadn’t noticed that in workshop videos!!
Hi Liam
Following Jaryd’s video, when I get to the stage of uploading the .py file to the library I don’t get a right click item of ‘upload to library’, just ‘upload to /’. This latter option results in the file being copied to the non-library section of the Pico files.
Any suggestions?
Toni
Hi Toni,
It’s fine if the library is there, micropython will still recognise that as a library.
You can make a folder by right clicking, navigate to that folder then save it there if you desire
Thanks Liam, I’ll give that a try
Toni