Modifications

Sauter à la navigation Sauter à la recherche
Ligne 9 : Ligne 9 :     
== Copier des fichiers sur la carte ==
 
== Copier des fichiers sur la carte ==
The '''put''' command can copy files from your computer to a MicroPython board. This is great for copying over Python source code and other files you create on your computer.
+
La commande '''{{fname|put}}''' peut copier des fichiers depuis votre ordinateur vers la carte MicroPython. Cette opération est appropriée pour copier des sources Python créé sur votre ordinateur vers la carte MicroPython.
   −
For example to copy a file called '''test.py''' from your computer to the root of a MicroPython board's filesystem under '''/test.py''' run the following command:
+
Par exemple, pour copier un fichier appelé '''test.py''' depuis l'ordinateur vers le répertoire racine de la carte MicroPython (sous le nom '''/test.py'''), il faut utiliser la commande suivante:
   −
  <nowiki>ampy --port /serial/port put test.py</nowiki>
+
  <nowiki>ampy --port /port/série put test.py</nowiki>
   −
Where '''/serial/port''' is the path or name of the serial port connected to the MicroPython board. Make sure '''test.py''' is in the same directory as you're running the command too. If the file isn't there then specify the full path to it on your computer.
+
'''/port/série''' est le chemin (ou nom) du port série surlequel la carte MicroPython est connectée. Assurez-vous d'avoir le fichier '''test.py''' disponible dans répertoire courant lorsque vous exécutez votre commande ampy. Si le fichier n'est pas là alors spécifiez le chemin complet permettant de localiser le fichier sur votre ordinateur.
   −
You can also put the file on the board in a path other than the root. Just specify as another argument the full path and filename to use on the board.  For example to copy a '''test.py''' from your computer to a file '''/foo/bar.py''' on the board run (note the parent foo directory must already exist!):
+
Vous pouvez également placer le fichier ailleurs que dans le répertoire racine de votre carte MicroPython. Spécifiez simplement le chemin complet  Just specify as another argument the full path and filename to use on the board.  For example to copy a '''test.py''' from your computer to a file '''/foo/bar.py''' on the board run (note the parent foo directory must already exist!):
    
  <nowiki>ampy --port /serial/port put test.py /foo/bar.py</nowiki>
 
  <nowiki>ampy --port /serial/port put test.py /foo/bar.py</nowiki>
29 918

modifications

Menu de navigation