Managing files on the Pico with MicroPython

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 29

  • @davidhill499
    @davidhill499 3 роки тому +3

    Great stuff Kevin. Your videos cover what I want to know. So far many other prsenters dont seem to dig into this.

  • @Resus-U
    @Resus-U Рік тому +1

    How do y’all see the files on the left. When I click files it just shows my computer files

  • @danieldare2640
    @danieldare2640 Рік тому

    Really useful, I've subscribed, thanks so much for that one, very interesting.

  • @justmc62
    @justmc62 Рік тому +1

    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  Рік тому +1

      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 Рік тому

      @@kevinmcaleer28 Thanks Kevin for the quick and descriptive reply ...Love your channel !

  • @zyghom
    @zyghom 3 роки тому +2

    so simple yet so useful - thx

  • @lesingeniauxmakerspacepari7346
    @lesingeniauxmakerspacepari7346 3 роки тому +1

    Nice tutorial, really helpful!

  • @thweiser
    @thweiser 3 роки тому +1

    I really like that format!!! Thanks :-)

  • @udomtipparach4894
    @udomtipparach4894 2 роки тому +1

    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  2 роки тому

      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

  • @kapex6405
    @kapex6405 2 роки тому +1

    Thanks a lot! This was helpful and simple!

  • @raspberryPi1337
    @raspberryPi1337 3 роки тому +1

    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

  • @robertmurton7373
    @robertmurton7373 3 роки тому +1

    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?

  • @speedy_sasquatch
    @speedy_sasquatch 2 роки тому +1

    very helpful thank you!

  • @aminekouchta9616
    @aminekouchta9616 Рік тому

    really good tips thank you

  • @yxhankun
    @yxhankun Рік тому +1

    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.

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl Рік тому +1

    Thank YOu

  • @robertmurton7373
    @robertmurton7373 3 роки тому +1

    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 роки тому +1

    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 роки тому +1

    Thank you Kevin. I will use this information in my quest to get mpu9250 (simple.py) to work.