Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 2 : Ligne 2 :     
{{traduction}}
 
{{traduction}}
There are two important files that MicroPython looks for in the root of its filesystem. These files contain MicroPython code that will be executed whenever the board is powered up or reset (i.e. it 'boots'). These files are:
+
Il y a deux fichiers important dans le système de fichier MicroPython. Ils se trouvent tout deux dans le répertoire racine du système de fichier.
* {{fname|/boot.py}} - This file is run '''first''' on power up/reset and should contain low-level code that sets up the board to finish booting.  You typically don't need to modify boot.py unless you're customizing or modifying MicroPython itself.  However it's interesting to look at the contents of the file to see what happens when the board boots up.  Remember you can use the ampy '''get''' command to read this and any other file!
+
 
 +
Ces fichiers contiennent du code MicroPython qui sera exécuté lorsque la carte est mise sous-tension ou réinitialisée (en pressant le bouton "reset"). Ces fichiers sont:
 +
* {{fname|/boot.py}}: Ce fichier est le {{underline|premier}} à être exécuté lorsque la carte est mise sous-tension (ou réinitialisée). Il doit contenir du code de bas niveau qui sera exécuté pour achever la séquence de boot/démarrage de la carte.  You typically don't need to modify boot.py unless you're customizing or modifying MicroPython itself.  However it's interesting to look at the contents of the file to see what happens when the board boots up.  Remember you can use the ampy '''get''' command to read this and any other file!
 
* {{fname|/main.py}} - If this file exists it's run '''after''' boot.py and should contain any main script that you want to run when the board is powered up or reset.
 
* {{fname|/main.py}} - If this file exists it's run '''after''' boot.py and should contain any main script that you want to run when the board is powered up or reset.
  
29 918

modifications

Menu de navigation