Modifications

Sauter à la navigation Sauter à la recherche
1 350 octets ajoutés ,  19 février 2022 à 21:27
Ligne 247 : Ligne 247 :  
== File manager ==
 
== File manager ==
   −
xxx
+
It is common to copy library/libraries on the board.
 +
 
 +
This will requires to '''transfer one (or several) files to the MicroPython board'''.
 +
 
 +
Such '''libraries''' are usually python scripts (eg: ce [https://raw.githubusercontent.com/mchobby/esp8266-upy/master/bme280-bmp280/bme280.py bme280.py file]) coded for target sensors (eg: [https://github.com/mchobby/esp8266-upy/tree/master/bme280-bmp280 BME280 atmospheric & temperature I2C sensor]).
 +
 
 +
Thank to Thonny you also have a dedicated "file manager" tool used to transfert files between the computer and the MicroPython board.
 +
 
 +
The file manager is available via the "'''View | Files'''" menu.
    
[[Fichier:ENG-CANSAT-PICO-THONNY-30.png|480px]]
 
[[Fichier:ENG-CANSAT-PICO-THONNY-30.png|480px]]
 +
 +
Which would display the Thonny file manager.
 +
 +
[[Fichier:ENG-CANSAT-PICO-THONNY-31.png|480px]]
 +
 +
To transfer a file from the computer to the MicroPython board, you will need to :
 +
* Select the file into the "Computer" pane
 +
* Activate the contextual menu (mouse right click)
 +
* Select the option "Upload to" in the menu
 +
 +
{{ambox|text=The "/" drawed into the menu match the root folder on the target (the microcontroler in this case).}}
 +
 +
[[Fichier:ENG-CANSAT-PICO-THONNY-32.png|480px]]
 +
 +
It would be easy to identify the features and behavior of the file manager by exploring and testing the various entries in the contextual menu. Please note that contectual menu are different in the board pane and computer pane.
    
{{ENG-CANSAT-PICO-TRAILER}}
 
{{ENG-CANSAT-PICO-TRAILER}}
29 917

modifications

Menu de navigation