Modifications

Sauter à la navigation Sauter à la recherche
701 octets ajoutés ,  26 février 2017 à 11:50
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{RASP-FT232H-NAV}}
 
{{RASP-FT232H-NAV}}
   −
{{traduction}}
+
= Mac OSX =
 +
Nous aurons besoin d'installer les modules suivantes pour utiliser le mode MPSSE mode sur Mac OSX:
 +
* Bibliothèque libftdi
 +
* Bibliothèque Adafruit Python GPIO.
   −
= Mac OSX =
+
Suivez soigneusement les instructions suivante pour installer ces bibliothèques.
To access the MPSSE mode on Mac OSX we need to install libftdi and the Adafruit Python GPIO library.  Carefully follow the steps below to install these libraries.
     −
Note that these steps were tested using OSX Mavericks. The steps should work for later versions like Yosemite, but you might need to search for extra help on installing Xcode command line tools below.
+
{{ambox|text=Les étapes suivantes ont été testées Nsur OSX Mavericks. Ces étapes devraiement également fonctionner sur les version ultérieures tels que Yosemite mais vous pourriez avoir besoin de chercher un peut d'aide sur internet concernant les commande d'installation de l'outil Xcode. }}
   −
First before you get started you will need to make sure you have [https://developer.apple.com/xcode/ Xcode] and the Xcode command line tools installed. This is required to compile and build libraries from source. [http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools Follow the steps in the answer to this Stackoverflow question] for a good walkthrough of how to install the Xcode command line tools.
+
Avant de commencer, nous devons nous assurez de la disponibilité de l'outil [https://developer.apple.com/xcode/ Xcode] (utilitaire en ligne de commande). Cet outil est nécessaire pour compiler les biblothèques depuis le code source. [http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools Suivez les étapes en réponse à cette question sur Stackoverflow] pour vous guider dans l'installation de l'utilitaire en ligne de commande "Xcode".
   −
Next install the [http://brew.sh/ Homebrew package manager] which will be used to install the necessary libftdi depedencies. Follow the installation instructions from the bottom of [http://brew.sh/ Homebrew's homepage] to install it.
+
Ensuite, installez le [http://brew.sh/ gestionnaire de paquet Homebrew], il sera utiliser pour installer les dépendances nécessaires de la bibliothèque libftdi. Suivez les instructions d'installation que vous trouverez en bas de la [http://brew.sh/ page d'accueil Homebrew] pour l'installer.
   −
Now run the following commands in a terminal in order to install libftdi and its dependencies:
+
Maintenant, démarrez un terminal, nous allons installer libftdi et ses dépendances:
    
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Ligne 23 : Ligne 25 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
The commands above should complete without any errors. If you do see errors, make sure you have Xcode and Homebrew successfully installed and try again.
+
Les commandes devraient s'exécuter sans erreur. Si vous voyez des erreurs, alors assurez vous d'avoir correctement installé Xcode et Homebrew puis refaite un essai.
   −
Next download the Adafruit Python GPIO library by clicking the button below:
+
Ensuite, nous allons télécharger la bibliothèque Adafruit Python GPIO 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 l'archive dans un répertoire puis utiliser une session terminal et rendez dans Unzip the archive and navigate to the folder inside a terminal.  Then run the following command to install the library:
    
  <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 vous des messages indiquant l'installation de la bibliothèque '''sans erreur'''.
   −
To test the libraries are installed run the following command in a terminal to open the Python interpretor:
+
Nous allons maintenant tester les bibliothèques en essayant de les charger dans un interpréteur de commande python:
    
  <nowiki>python</nowiki>
 
  <nowiki>python</nowiki>
   −
At the Python interpretor >>> prompt type the following commands to test loading the libraries:
+
Saisissez les commandes suivantes sur l'invite de commande >>> de l'interpréteur Python:
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 46 : Ligne 48 :  
</syntaxhighlight>  
 
</syntaxhighlight>  
   −
You should see no response from the Python interpretor after entering each line.  If 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 Python devrait charger les bibliothèques sans afficher de message d'erreur (sans afficher aucun message).
   −
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.
+
Si vous constatez un message d'erreur lors du chargement des modules alors reprenez soigneusement les étapes d'installation de libftdi et Adafruit_GPIO (ci-dessus) et assurez vous que les bibliothèques soient installées correctement.
   −
To quit the Python interpretor enter the following:
+
S'il n'y a pas d'erreurs... alors félicitation, vous venez d'installer les bibliothèques libftdi et Adafruit Python GPIO!
 +
 
 +
Vous pouvez maintenant passer à la section suivante expliquant comment accéder au mode MPSSE pour contrôler les GPIO, le bus SPI/I2C, etc.
 +
 
 +
Vous pouvez quitter l'interpréteur Python en saisissant la commande suivante:
    
  <nowiki>quit()</nowiki>
 
  <nowiki>quit()</nowiki>
    
== Désactiver le pilote FTDI sous OSX 10.11 El Capitan ==
 
== Désactiver le pilote FTDI sous OSX 10.11 El Capitan ==
Note on OSX 10.11 El Capitan and higher you might need to permanently disable Apple's built in FTDI serial driver in order to use all of the FT232H's functions. This can be accomplished by following section 7.3 Block with D2xxHelper from the [http://www.ftdichip.com/Support/Documents/AppNotes/AN_134_FTDI_Drivers_Installation_Guide_for_MAC_OSX.pdf FTDI app note here].
+
Sous OSX 10.11 El Capitan (et version supérieures), vous pourriez avoir besoin de désactiver le pilote FTDI serial d'Apple (de façon permanente) pour pouvoir utiliser toutes les fonctions du FT232H.
 +
 
 +
Cela peut se faire en suivant la section 7.3 Block avec D2xxHelper expliqué dans les [http://www.ftdichip.com/Support/Documents/AppNotes/AN_134_FTDI_Drivers_Installation_Guide_for_MAC_OSX.pdf notes applicatives de FTDI (disponible ici)].
    
{{RASP-FT232H-TRAILER}}
 
{{RASP-FT232H-TRAILER}}
29 917

modifications

Menu de navigation