Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 30 : Ligne 30 :  
[[Fichier:Rasp-Hack-GPIO-LedBackpack.jpg|500px]]
 
[[Fichier:Rasp-Hack-GPIO-LedBackpack.jpg|500px]]
   −
To program the GPIO ports in Python, we need to install a very useful Python 2 library called Rpi.GPIO. This module gives us a simple to use Python library that will let us control the GPIO pins.
+
Pour programmer les sorties GPIO en Python, nous avons besoin d'installer une librairie très utile écrite en Python 2. Cette librairie s'appelle '''Rpi.GPIO''' et fournit une façon simple de contrôler les broches GPIO.
 +
 
 +
Le processus d'installation est identique pour Raspbien ou Occidentalis. Dans les faits, certaines versions de Raspbian inclus déjà cette librairie. Dans tous les cas, il faut mettre mise-à-jour votre système pour disposer des dernières versions de vos packets.
   −
The installation process for this is the same whether you are using Raspbian or Occidentalis. In actual fact, some versions of Raspbian include this library, but these instructions will also have the effect of updating to the latest version, which is worth doing.
      
  <nowiki>sudo apt-get update</nowiki>
 
  <nowiki>sudo apt-get update</nowiki>
   −
To install RPi.GPIO, you first need to install the Python Development toolkit that RPi.GPIO requires.
+
Pour disposer de RPi.GPIO, vous aurez d'abord besoin d'installer des outils de développement Python (requis pour l'installation de RPi.GPIO).
   −
To do this enter the following command into LXTerminal:
+
Pour ce faire, entrez la commande suivante dans LXTerminal:
    
  <nowiki>sudo apt-get install python-dev</nowiki>
 
  <nowiki>sudo apt-get install python-dev</nowiki>
   −
Then to install Rpi.GPIO itself type:
+
Pour installer Rpi.GPIO, tapez la commande:
Copy Code
      
  <nowiki>sudo apt-get install python-rpi.gpio</nowiki>
 
  <nowiki>sudo apt-get install python-rpi.gpio</nowiki>
   −
You will probably be prompted to confirm by entering 'Y'.
+
Il vous sera certainement demandé de confirmer l'installation (presser 'Y' de Yes pour confirmer).
 
  −
Thats all there is to it. You are ready to try some of the projects I mentioned at the top of this section.
      +
C'est tout ce dont vous avez besoin. Vous êtes maintenant prêt à tester les quelques projets mentionnés en début de page.
    
{{Rasp-Hack-GPIO-TRAILER}}
 
{{Rasp-Hack-GPIO-TRAILER}}
29 917

modifications

Menu de navigation