Modifications

Sauter à la navigation Sauter à la recherche
409 octets ajoutés ,  16 décembre 2017 à 21:59
Ligne 32 : Ligne 32 :  
{{ADFImage|FEATHER-M0-MicroPython-REPL-03.png|640px}}
 
{{ADFImage|FEATHER-M0-MicroPython-REPL-03.png|640px}}
   −
== Mac OSX and Linux ==
+
== Sur Mac OSX et Linux ==
Connecting to the serial terminal on is more straightforward than on Windows. Neither OS requires additional drivers.
+
La connexion avec un terminal série est plus facile que sur Windows. Aucun des deux systèmes d'exploitation ne requière d'installation de pilote.
   −
First open a terminal program. On Mac OSX, Terminal comes installed and [https://www.iterm2.com/ iTerm2] can be downloaded. On Linux there are a variety available such as gnome-terminal (called Terminal) and Konsole on KDE.
+
Commencez par ouvrir un terminal. Sur Mac OSX, Terminal est déjà installé et vous pouvez télécharger [https://www.iterm2.com/ iTerm2]. Il y a de nombreux terminaux disponibles tel que gnome-terminal (appelé Terminal) et Konsole sur KDE.
   −
Now before plugging in the board, type <code>ls /dev/tty.*</code> to view existing serial connections.
+
Maintenant, saisissez la commande {{fname|ls /dev/tty*}} avant de brancher la carte. Cela permet de voir les connexions séries existantes.
    
{{ADFImage|FEATHER-M0-MicroPython-REPL-04.png|480px}}
 
{{ADFImage|FEATHER-M0-MicroPython-REPL-04.png|480px}}
   −
Next, plug in the board. There should be one new serial connection that is for your board. Typically on Mac OSX its something like <code>/dev/tty.usbmodem*</code> and on Linux its <code>/dev/ttyACM*</code>.
+
Ensuite, branchez la carte. Il devrait y avoir une nouvelle connexion série associée à la carte, connexion que vous pouvez identifier avec {{fname|ls /dev/tty*}}. Sur Mac OSX cela devrait ressembler à ceci {{fname|/dev/tty.usbmodem*}} et sur Linux, cela devrait ressembler à {{fname|/dev/ttyACM*}} .
    
{{ADFImage|FEATHER-M0-MicroPython-REPL-05.png|480px}}
 
{{ADFImage|FEATHER-M0-MicroPython-REPL-05.png|480px}}
   −
Now that we know the device name, the <code>screen</code> command can be used to connect to the serial port. Its installed on Mac OSX by default but Linux users may need to install it using their package manager. Run the following command to connect at 115200 baud:
+
Maintenant que nous connaissons le nom de périphérique associé à la carte, nous pouvons utiliser la commande {{fname|screen}} pour se connecter sur sur le port série. Screen est disponible par défaut sur un Mac OSX, les utilisateurs Linux pourraient avoir besoin de l'installer en utilisant le gestionnaire de paquet/logiciel de la distribution.  
 +
 
 +
Exécutez la commande suivante pour établir une connexion à 115200 baud:
    
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
screen /dev/tty.board_name 115200
+
screen /dev/tty_nom_peripherique 115200
 
</syntaxhighlight>
 
</syntaxhighlight>
    +
où '''/dev/tty_nom_peripherique''' est le nomd du périphérique série associé à la carte.
   −
Where '''/dev/tty.board_name''' is the name of the board's serial port.
+
Lorsque vous utilisez "screen", il est possible de le quitter en pressant les touches '''Ctrl-a''' puis '''k''' puis '''y''' (pour Oui) -OU- en pressant '''Ctrl-a''' puis en saisissant ''':quit''' suivit d'un retour clavier.
 
  −
When you're done using screen most versions of it allow you to exit by pressing '''Ctrl-a''' then '''k''' then '''y '''or pressing '''Ctrl-a''' then typing ''':quit''' and pressing '''enter'''.
      
{{ADFImage|FEATHER-M0-MicroPython-REPL-06.png|480px}}
 
{{ADFImage|FEATHER-M0-MicroPython-REPL-06.png|480px}}
29 917

modifications

Menu de navigation