Modifications

Sauter à la navigation Sauter à la recherche
239 octets ajoutés ,  16 février 2015 à 20:39
Ligne 40 : Ligne 40 :     
== Utiliser l'invite REPL ==
 
== Utiliser l'invite REPL ==
Now let’s try running some Micro Python code directly on the pyboard.
+
Maintenant, nous allons essayer d'exécuter du code Micro Python directement sur notre pyboard.
   −
With your serial program open (PuTTY, screen, picocom, etc) you may see a blank screen with a flashing cursor. Press Enter and you should be presented with a Micro Python prompt, i.e. {{fname|>>>}}. Let’s make sure it is working with the obligatory test:
+
Avec votre programme série ouvert (PuTTY, screen, picocom, etc) vous devriez voir un écran vide avec un curseur qui clignote. Pressez la touche Enter/Retour clavier et Micro Python doit vous présenter l'invite de commande {{fname|>>>}}. Assurons nous que REPL fonctionne bien comme entrant la commande de test:
    
  <nowiki>>>> print("hello pyboard!")
 
  <nowiki>>>> print("hello pyboard!")
 
hello pyboard!</nowiki>
 
hello pyboard!</nowiki>
   −
In the above, you should not type in the {{fname|>>>}} characters. They are there to indicate that you should type the text after it at the prompt. In the end, once you have entered the text {{fname|print("hello pyboard!")}} and pressed Enter, the output on your screen should look like it does above.
+
Dans l'exemple ci-dessus, vous n'avez pas besoin de taper les caractères {{fname|>>>}}. Ils sont là pour vous indiquer que vous pouvez du texte sur cette invite de commande. Pour finir, une fois que vous avez saisi le texte {{fname|print("hello pyboard!")}} et pressé Enter/Retour clavier, vous devriez voir le résultat tel que présenté dans l'écran ci-dessus.
   −
If you already know some python you can now try some basic commands here.
+
Si vous connaissez déjà Python pour pouvez poursuivre vos essais sur l'invite de commande.
   −
If any of this is not working you can try either a hard reset or a soft reset; see below.
+
Si aucun de ces essais fonctionne alors vous pouvez essayer soit une réinitialisation matériel, soit une réinitialisation logicielle; voyez ci-dessous.
   −
Go ahead and try typing in some other commands. For example:
+
Aller plus loin et essayez d'entrer d'autres commandes. Par example:
    
  <nowiki>>>> pyb.LED(1).on()
 
  <nowiki>>>> pyb.LED(1).on()
29 917

modifications

Menu de navigation