Modifications

Sauter à la navigation Sauter à la recherche
126 octets ajoutés ,  1 octobre 2013 à 07:08
Ligne 3 : Ligne 3 :  
== La commande "gpio" ==
 
== La commande "gpio" ==
   −
{{bloc-etroit|text= WiringPi comes with a separate program to help manage the GPIO. This program, called '''gpio''', can also be used in scripts to manipulate the GPIO pins – set outputs and read inputs. It’s even possible to write entire programs just using the '''gpio''' command in a shell-script, although it’s not terribly efficient doing it that way… Another way to call it is using the system() function in C/C++ or it’s equivalent in other programming languages.  
+
{{bloc-etroit|text= WiringPi est distribué avec une programme séparé pour facilité la gestion du GPIO. Ce programme, appelé '''gpio''', peut également être utilisé dans des scripts pour manipuler les broches du GPIO – lire les entrées et fixer l'état des sorties. Il est même possible d'écrire un programme entier en shell-script en utilisant la commande '''gpio'''... même si cela n'est pas terriblement efficace. Une autre façon d'atteindre le même but serait d'utiliser les fonctions system() en C/C++ ou leurs équivalents dans d'autres langages de programmation.  
   −
{{ambox|text= The '''gpio''' command is designed to be installed as a setuid program and called by a normal user without using the sudo command (or logging in as root). }}
+
{{ambox|text= La commande '''gpio''' est conçue pour être installé comme un programme ''setuid'' et appelé par un utilisateur normal sans avoir besoin de sudo (ou d'être loggé en root). }}
    
}}
 
}}
   −
In addition to using the gpio utility to control the GPIO pins, you can:
+
En plus de pouvoir contrôler les broches, l'utilitaire GPIO permet de:
    
* Export/Unexport pins via the /sys/class/gpio interface, where they will then be available to user programs (that then do not need to be run as root or with sudo)
 
* Export/Unexport pins via the /sys/class/gpio interface, where they will then be available to user programs (that then do not need to be run as root or with sudo)
32 920

modifications

Menu de navigation