RASP-FT232H-MPSSE-Linux

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

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.

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.

In a command terminal execute the following commands to install libftdi and its dependencies:

sudo apt-get update
sudo apt-get install build-essential libusb-1.0-0-dev swig cmake python-dev libconfuse-dev libboost-all-dev
wget http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.2.tar.bz2
tar xvf libftdi1-1.2.tar.bz2
cd libftdi1-1.2
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr/" ../
make
sudo make install

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.

Next download the Adafruit Python GPIO library by clicking the button below:

Unzip the archive and navigate to the folder inside a terminal. Then run the following command to install the library:

sudo python setup.py install

You should see the Python library successfully install without any errors.

To test the libraries are installed run the following command in a terminal to open the Python interpretor:

python

At the Python interpretor >>> prompt type the following commands to test loading the libraries:

import Adafruit_GPIO
import ftdi1

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.

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.

To quit the Python interpretor enter the following:

quit()



Source: Adafruit FT232H Breakout Add a serial protocol 'swiss army knife' to your computer and talk directly to devices with SPI, I2C, serial UART, GPIO's, and more!
Créé par Toni DiCola pour AdaFruit Industries.

Traduction réalisée par Meurisse D pour MCHobby.be.

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com