No video
Managing files on the Pico with MicroPython
Do you want to know how to manage your files on the Raspberry Pi Pico using MicroPython? Then this is the video for you.
In this video I'll show you how to save files to the Pico, how to create folders and rename files and how to remove folders. I'll also go over the differences between MicroPython and CircuitPython when it comes to file management.
For more information, tutorials, parts and more visit:
www.smarsfan.com
To join the membership at bronze, silver or gold levels, head over to
www.smarsfan.c...
Enjoy this video? Buy me a coffee!
www.buymeacoff...
Music by Epidemic Sounds
www.epidemicso...
#Pico #MicroPython #Robotics
Пікірлер: 29
Great stuff Kevin. Your videos cover what I want to know. So far many other prsenters dont seem to dig into this.
@kevinmcaleer28
3 жыл бұрын
Thanks David!
so simple yet so useful - thx
Really useful, I've subscribed, thanks so much for that one, very interesting.
I really like that format!!! Thanks :-)
@kevinmcaleer28
3 жыл бұрын
I'm really glad you like it!
Nice tutorial, really helpful!
Thanks a lot! This was helpful and simple!
very helpful thank you!
really good tips thank you
How do y’all see the files on the left. When I click files it just shows my computer files
Thank YOu
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?
@kevinmcaleer28
Жыл бұрын
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
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..
@kevinmcaleer28
Жыл бұрын
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
@justmc62
Жыл бұрын
@@kevinmcaleer28 Thanks Kevin for the quick and descriptive reply ...Love your channel !
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.
@kevinmcaleer28
3 жыл бұрын
Are you using CircuitPython or MicroPython?
how to copy all files in pico to pc in one command?
@kevinmcaleer28
Жыл бұрын
If you use mpremote, you can copy all the files in one go.
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?
@kevinmcaleer28
3 жыл бұрын
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.
@raspberryPi1337
3 жыл бұрын
@@kevinmcaleer28 thanks a lot for your help, I'm just just a noob
this is the output '['ak8963', 'gyro', 'install', 'lib', 'mpu6050', 'm...'
@kevinmcaleer28
3 жыл бұрын
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
@kevinmcaleer28
3 жыл бұрын
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.