Ligne 22 : |
Ligne 22 : |
| == Se connecter en ligne de commande == | | == Se connecter en ligne de commande == |
| | | |
− | '''On Windows''' you'll want to use a tool like [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] to connect to the serial port. Download and run PuTTY, then configure it to use a serial connection to the board's COM port at 115200 baud similar to as shown below: | + | '''Sur Windows''' vous aurez besoin d'un outil comme [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] pour vous connecter sur le port série. Téléchargez et exécutez PuTTY. Ensuite, configurez le pour utiliser le port série de votre carte (port COM) a 115200 baud... comme sur l'image ci-dessous: |
| | | |
| {{ADFImage|FEATHER-CHARGER-MICROPYTHON-SERIAL-REPl-10.png}} | | {{ADFImage|FEATHER-CHARGER-MICROPYTHON-SERIAL-REPl-10.png}} |
Ligne 28 : |
Ligne 28 : |
| {{ADFImage|FEATHER-CHARGER-MICROPYTHON-SERIAL-REPl-11.png}} | | {{ADFImage|FEATHER-CHARGER-MICROPYTHON-SERIAL-REPl-11.png}} |
| | | |
− | '''On Linux or Mac OSX''' the screen command can be used to connect to the serial port. Run the following command to connect at 115200 baud: | + | '''Sur Linux ou Mac OSX''' la commande {{fname|screen}} peut être utilisée pour vous connecter rapidement sur le port série. Exécutez la commande suivante pour vous pour vous connecter à 115200 baud: |
| | | |
− | <nowiki>screen /dev/tty.board_name 115200</nowiki> | + | <nowiki>screen /dev/tty.nom_carte 115200</nowiki> |
| | | |
− | Where '''/dev/tty.board_name''' is the name of the board's serial port.
| + | Où '''/dev/tty.nom_carte''' est le nom du port série de la carte. |
| | | |
− | When you're done using screen most versions of it allow you to exit by pressing '''Ctrl-a''' then '''k''' then '''y''' or presing '''Ctrl-a''' then typing :quit and pressing enter.
| + | Lorsque vous avez terminé d'utiliser {{fname|screen}}, il est possible de le quitter (sur la plupart des versions) en utilisant la combinaison de touches '''Ctrl a''' puis '''k''' puis '''y''' (pour oui) -OU- presser '''Ctrl a''' puis taper {{fname|:quit}} et presser le retour clavier. |
| | | |
− | After you're connected to the serial REPL try pressing enter to confirm you see the '''>>>''' prompt. You can also type '''help()''' and press enter on most boards to see basic usage information.
| + | Une fois connecté sur le REPL série essayez de presser le retour clavier (pour confirmer une première commande "vide") et vous devriez voir l'invite REPL '''>>>''' . |
| + | |
| + | Vous pouvez saisir la fonction '''help()''' puis presser le retour clavier, cela affiche un message d'aide sur la plupart des cartes MicroPython. |
| | | |
| If you can't get a '''>>>''' prompt to appear try pressing '''Ctrl-c''' a couple times to interrupt any running program on the board. | | If you can't get a '''>>>''' prompt to appear try pressing '''Ctrl-c''' a couple times to interrupt any running program on the board. |