Тёмный

Managing files on the Pico with MicroPython 

Kevin McAleer
Подписаться 31 тыс.
Просмотров 14 тыс.
50% 1

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.com/membership
Enjoy this video? Buy me a coffee!
www.buymeacoffee.com/kevinmca...
Music by Epidemic Sounds
www.epidemicsound.com/referra...
#Pico​ #MicroPython​ #Robotics

Развлечения

Опубликовано:

 

10 май 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@zyghom
@zyghom 3 года назад
so simple yet so useful - thx
@davidhill499
@davidhill499 3 года назад
Great stuff Kevin. Your videos cover what I want to know. So far many other prsenters dont seem to dig into this.
@kevinmcaleer28
@kevinmcaleer28 3 года назад
Thanks David!
@lesingeniauxmakerspacepari7346
@lesingeniauxmakerspacepari7346 2 года назад
Nice tutorial, really helpful!
@kapex6405
@kapex6405 2 года назад
Thanks a lot! This was helpful and simple!
@TOMTOM-nh3nl
@TOMTOM-nh3nl Год назад
Thank YOu
@danieldare2640
@danieldare2640 11 месяцев назад
Really useful, I've subscribed, thanks so much for that one, very interesting.
@speedy_sasquatch
@speedy_sasquatch Год назад
very helpful thank you!
@thweiser
@thweiser 3 года назад
I really like that format!!! Thanks :-)
@kevinmcaleer28
@kevinmcaleer28 3 года назад
I'm really glad you like it!
@aminekouchta9616
@aminekouchta9616 Год назад
really good tips thank you
@Branmomar2
@Branmomar2 Год назад
How do y’all see the files on the left. When I click files it just shows my computer files
@raspberryPi1337
@raspberryPi1337 3 года назад
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
@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
@raspberryPi1337 3 года назад
@@kevinmcaleer28 thanks a lot for your help, I'm just just a noob
@udomtipparach4894
@udomtipparach4894 Год назад
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
@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
@justmc62
@justmc62 11 месяцев назад
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
@kevinmcaleer28 11 месяцев назад
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
@justmc62 11 месяцев назад
@@kevinmcaleer28 Thanks Kevin for the quick and descriptive reply ...Love your channel !
@robertmurton7373
@robertmurton7373 3 года назад
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
@kevinmcaleer28 3 года назад
Are you using CircuitPython or MicroPython?
@yxhankun
@yxhankun Год назад
how to copy all files in pico to pc in one command?
@kevinmcaleer28
@kevinmcaleer28 Год назад
If you use mpremote, you can copy all the files in one go.
@robertmurton7373
@robertmurton7373 3 года назад
I am using Micropython
@kevinmcaleer28
@kevinmcaleer28 3 года назад
So from the repl - if you type ‘import os’, then ‘listdir()’ - what is the output?
@robertmurton7373
@robertmurton7373 3 года назад
this is the output '['ak8963', 'gyro', 'install', 'lib', 'mpu6050', 'm...'
@kevinmcaleer28
@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
@robertmurton7373
@robertmurton7373 3 года назад
Thank you Kevin. I will use this information in my quest to get mpu9250 (simple.py) to work.
Далее
Auto-start scripts on MicroPython
6:34
Просмотров 11 тыс.
КОРОЧЕ ГОВОРЯ, ШКОЛА БУДУЩЕГО
10:40
Can We Save Goku In 5 SECONDS⁉️😰 #dbz #goku
00:15
100+ Linux Things you Need to Know
12:23
Просмотров 107 тыс.
Raspberry Pi Pico - Review and Getting Started
18:32
Просмотров 74 тыс.
In-depth: Raspberry Pi Pico's PIO - programmable I/O!
17:19
Using PICO Interrupts
25:15
Просмотров 17 тыс.
Это жизнь😂инст:sarkison7
0:10
Просмотров 1,9 млн
ДЕДУШКА ВЫ ГДЕ? 🤣🤣
0:59
Просмотров 3,1 млн
Just a joke 😂
0:11
Просмотров 2,5 млн