Great tutorial Kevin... Was curious on how to manage files on the Pico W with Thonny .. Been doing a little further research. It appears 'os' is a python command , and that 'uos' is the command for micropython... Is there a benefit of using one over the other ? Thanks..
The ‘u’ character is prefixed to a lot of Micropython libraries to indicate they are a scaled down version of the python version (the u is the Greek Mu character). They are now aliased meaning you can use either
Thank you so much for introducing OS on thonny. My data files were save in Pi Pico, how can I change directory so that data files can be saved in my computer?
Great question- you can you Thonny to copy them from the Pico to your computer, or if you are feeling more adventurous you can use mpremote- I’ll do a video on that soon
Thanks for your video. Do you know if it is posible to copy files with the os mudule? Also how can you change between the pico folder and the pc folder?
Hey Lucky_M - thanks! I don't think file copying is straight forward in MicroPython - you could open the source file and read in each byte and write it out to a new file, but I'm not sure why you'd want to do that. The Pico doesn't know about the PC file system - you have to move files between the PC and Pico using software such as Thonny or Visual Studio Code.
hello Kevin it would appear that the code for mpu9250 still does not recognise the other import files even though they are in the '/' directory. i.e. ak89643.
Great stuff Kevin. Your videos cover what I want to know. So far many other prsenters dont seem to dig into this.
Thanks David!
How do y’all see the files on the left. When I click files it just shows my computer files
Really useful, I've subscribed, thanks so much for that one, very interesting.
Great tutorial Kevin... Was curious on how to manage files on the Pico W with Thonny .. Been doing a little further research. It appears 'os' is a python command , and that 'uos' is the command for micropython... Is there a benefit of using one over the other ? Thanks..
The ‘u’ character is prefixed to a lot of Micropython libraries to indicate they are a scaled down version of the python version (the u is the Greek Mu character). They are now aliased meaning you can use either
@@kevinmcaleer28 Thanks Kevin for the quick and descriptive reply ...Love your channel !
so simple yet so useful - thx
Nice tutorial, really helpful!
I really like that format!!! Thanks :-)
I'm really glad you like it!
Thank you so much for introducing OS on thonny. My data files were save in Pi Pico, how can I change directory so that data files can be saved in my computer?
Great question- you can you Thonny to copy them from the Pico to your computer, or if you are feeling more adventurous you can use mpremote- I’ll do a video on that soon
Thanks a lot! This was helpful and simple!
Thanks for your video. Do you know if it is posible to copy files with the os mudule? Also how can you change between the pico folder and the pc folder?
Hey Lucky_M - thanks!
I don't think file copying is straight forward in MicroPython - you could open the source file and read in each byte and write it out to a new file, but I'm not sure why you'd want to do that. The Pico doesn't know about the PC file system - you have to move files between the PC and Pico using software such as Thonny or Visual Studio Code.
@@kevinmcaleer28 thanks a lot for your help, I'm just just a noob
hello Kevin it would appear that the code for mpu9250 still does not recognise the other import files even though they are in the '/' directory. i.e. ak89643.
Are you using CircuitPython or MicroPython?
very helpful thank you!
really good tips thank you
how to copy all files in pico to pc in one command?
If you use mpremote, you can copy all the files in one go.
Thank YOu
this is the output '['ak8963', 'gyro', 'install', 'lib', 'mpu6050', 'm...'
How come the python files don’t have the .py extension - they need that for Python to find them - rename them to mpu6050.py etc and it should work
I am using Micropython
So from the repl - if you type ‘import os’, then ‘listdir()’ - what is the output?
Thank you Kevin. I will use this information in my quest to get mpu9250 (simple.py) to work.