Modifications

Sauter à la navigation Sauter à la recherche
Ligne 26 : Ligne 26 :     
== Lire des fichiers depuis la carte ==
 
== Lire des fichiers depuis la carte ==
The '''get''' command can read and copy files from a MicroPython board to your computer.
+
La commande '''get''' permet de lire un fichier sur la carte MicroPython et d'en copier le contenu sur votre ordinateur.
   −
For example to print the contents of '''/boot.py''' from a board run the following command:
+
Par exemple, pour {{underline|afficher}} le contenu du fichier '''/boot.py''' de la carte PyBoard, vous pouvez saisir la commande suivante:
    
  <nowiki>ampy --port /serial/port get boot.py</nowiki>
 
  <nowiki>ampy --port /serial/port get boot.py</nowiki>
Ligne 34 : Ligne 34 :  
{{ADFImage|FEATHER-CHARGER-FICHIER-MICROPYTHON-FILEOP-30.png}}
 
{{ADFImage|FEATHER-CHARGER-FICHIER-MICROPYTHON-FILEOP-30.png}}
   −
This will print out the contents of '''boot.py''' from the board's root directory.
+
Cela affiche le contenu de '''boot.py''' contenu dans le répertoire racine de la carte MicroPython.
   −
You can instead copy the contents of '''boot.py''' into a file on your computer by specifying the path to the file to save as a second argument. For example to copy '''/boot.py''' from a board to a file '''board_boot.py''' on your computer you can run:
+
Vous pouvez également copier le contenu du fichier '''boot.py''' dans un fichier sur votre ordinateur. Pour réaliser un telle opération, vous ajoutez un paramètre complémentaire à la commande, paramètre qui indique le nom du fichier dans lequel le contenu doit être stocké. Par exemple, vous pouvez saisir la commande suivante pour copier '''/boot.py''' depuis la carte dans le fichier '''board_boot.py''' sur l'ordinateur:
    
  <nowiki>ampy --port /serial/port get boot.py board_boot.py</nowiki>
 
  <nowiki>ampy --port /serial/port get boot.py board_boot.py</nowiki>
Ligne 42 : Ligne 42 :  
{{ADFImage|FEATHER-CHARGER-FICHIER-MICROPYTHON-FILEOP-31.png}}
 
{{ADFImage|FEATHER-CHARGER-FICHIER-MICROPYTHON-FILEOP-31.png}}
   −
{{ambox-stop|text= The get command will always overwrite files on the computer without warning!}}
+
{{ambox-stop|text=La commande {{fname|get}} écrasera toujours le fichier destinataire sur l'ordinateur. Sans avertissement!}}
    
== Créer des répertoire ==
 
== Créer des répertoire ==
29 922

modifications

Menu de navigation