Ligne 4 : |
Ligne 4 : |
| | | |
| == Réinitialisation et mode de démarrage == | | == Réinitialisation et mode de démarrage == |
| + | Comme déjà précisé, il existe une réinitialisation logicielle (''soft reset'') et une réinitialisation matériel (''hard reset''). |
| | | |
− | There are soft resets and hard resets.
| + | === Réinitialisation logicielle === |
| + | Une réinitialisation logicielle permet simplement de faire une remise-à-zéro de l'état de la machine virtuelle MicroPython sans affecter les périphériques. Pour réaliser un ''soft reset'' il suffit simplement de presser les touches Ctrl+D dans une session REPL. |
| | | |
− | === Réinitialisation logicielle ===
| + | Vous pouvez aussi réaliser un ''soft reset'' à l'aide du script suivant: |
− | A soft reset simply clears the state of the MicroPython virtual machine, but leaves hardware peripherals unaffected. To do a soft reset, simply press Ctrl+D on the REPL, or within a script do:
| |
| | | |
| <syntaxhighlight lang="python"> | | <syntaxhighlight lang="python"> |
Ligne 16 : |
Ligne 17 : |
| | | |
| === Réinitialisation matérielle === | | === Réinitialisation matérielle === |
− | A hard reset is the same as performing a power cycle to the board. In order to hard reset the WiPy, press the switch on the board or:
| + | La réinitialisation matérielle (''hard reset'') provoque un résultat identique à un cycle d'alimentation (mise-hors-tension puis remise-sous-tension). |
| + | |
| + | Pour réaliser un réinitialisation matérielle, vous pouvez: |
| + | * Presser le bouton Reset (marqué RST) present sur le WiPy. |
| + | * Couper puis rebrancher l'alimentation du WiPy |
| + | * Utiliser le code suivant (en mode REPL) |
| | | |
| <syntaxhighlight lang="python"> | | <syntaxhighlight lang="python"> |