Modifications

Sauter à la navigation Sauter à la recherche
618 octets ajoutés ,  26 février 2017 à 11:17
Ligne 4 : Ligne 4 :     
= Linux =
 
= Linux =
To access the MPSSE mode on Linux we need to install libftdi and the Adafruit Python GPIO library. Carefully follow the steps below to install these libraries.
+
Il est nécessaire d'installer les éléments suivants pour accéder au mode MPSSE sous Linux:
 +
* La bibliothèque libftdi  
 +
* La bibliothèque Adafruit Python GPIO  
 +
   
 +
Suivez attentivement les étapes ci-dessous pour installer ces bibliothèques.
   −
Note that these steps are made for Ubuntu 12.04/14.04 and should work with any Debian-based distribution.  If you're using a different distribution you might need to check its package manager for the appropriate commands to install the mentioned dependencies.
+
{{ambox|text=Ces étapes ont été réalisées sur un Ubuntu 12.04/14.04 et devraient fonctionner avec n'importe quelle distribution basée sur Debian. Si vous utiliser une distribution différente, vous pourriez avoir besoin d'utiliser votre gestionnaire de paquet (ou commandes appropriée) pour installer les dépendances mentionnées. }}
   −
In a command terminal execute the following commands to install libftdi and its dependencies:
+
Saisissez les commandes suivantes dans un terminal pour installer libftdi et ses dépendances:
    
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
Ligne 23 : Ligne 27 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
The commands above should complete without any errors. If you do see errors, make sure all the dependencies were installed with the apt-get install command.
+
La commande devrait s'exécuter complètement sans rencontrer d'erreur. Si vous voyez des erreurs alors assurez vous que les dépendances nécessaires soient installées (avec la commande {{fname|apt-get install}}.
   −
Next download the Adafruit Python GPIO library by clicking the button below:
+
Ensuite, nous allons télécharger la bibliothèque Adafruit Python GPIO library en cliquant sur le bouton ci-dessous:
    
{{download-box|Adafruit Python GPIO library|https://github.com/adafruit/Adafruit_Python_GPIO/archive/master.zip}}
 
{{download-box|Adafruit Python GPIO library|https://github.com/adafruit/Adafruit_Python_GPIO/archive/master.zip}}
   −
Unzip the archive and navigate to the folder inside a terminal.  Then run the following command to install the library:
+
Dézippez le contenu de l'archive dans un répertoire puis utilisez un terminal et rendez vous dans rendez vous dans ce répertoire.   
 +
 
 +
Exécutez la commande suivante pour installer la bibliothèque:
    
  <nowiki>sudo python setup.py install</nowiki>
 
  <nowiki>sudo python setup.py install</nowiki>
   −
You should see the Python library successfully install without any errors.   
+
Vous devriez voir la bibliothèque s'installer avec succès (sans erreur).   
   −
To test the libraries are installed run the following command in a terminal to open the Python interpretor:
+
Entrez la commande suivante depuis un terminal pour tester l'installation. Nous allons commencer par démarrer un interpréteur Python:
    
  <nowiki>python</nowiki>
 
  <nowiki>python</nowiki>
   −
At the Python interpretor >>> prompt type the following commands to test loading the libraries:
+
A l'affichage de l'invite de commande de l'interpréteur >>> saisissez les commandes suivante pour charger les bibliothèques:
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 46 : Ligne 52 :  
</syntaxhighlight>  
 
</syntaxhighlight>  
   −
You should see no response from the Python interpretor after entering each lineIf you do see an error that a module cannot be loaded, go back to the libftdi installation steps above and carefully check they completed successfully.
+
L'interpréteur devrait charger les module sans afficher aucun message (autrement dit: "sans se plaindre d'un problème").   
 +
 
 +
Si vous voyez un message mentionnant que le module ne peut pas être charger alors retournez dans la section d'installation des bibliothèques (ci-dessus) et vérifiez attentivement l'exécution correcte de chaque étape.
 +
 
 +
S'il n'y a pas d'erreur au chargement des modules Adafruit_GPIO et ftdi1 cela signifie que nous venons d'installer les bibliothèques avec succès!
   −
If there are no errors, congratulations you've successfully installed libftdi and the Adafruit Python GPIO library!  Move on to the next section to learn how to access the MPSSE mode GPIO, SPI, I2C, etc.
+
Vous pouvez maintenant passer au sections suivantes pour apprendre comment accéder au mode MPSSE et les GPIO, SPI, I2C, etc.
   −
To quit the Python interpretor enter the following:
+
Vous pouvez quitter l'interpréteur python en saisissant la commande suivante:
    
  <nowiki>quit()</nowiki>
 
  <nowiki>quit()</nowiki>
29 918

modifications

Menu de navigation