Modifications

Sauter à la navigation Sauter à la recherche
4 140 octets ajoutés ,  16 août 2013 à 19:26
aucun résumé de modification
Ligne 2 : Ligne 2 :     
{{Traduction}}
 
{{Traduction}}
 +
 +
== A propos de WiringPi ==
 +
 +
WiringPi is a GPIO access library written in C for the BCM2835 used in the Raspberry Pi. It’s released under the GNU LGPLv3 license and is usable from C and C++ and many other languages with suitable wrappers (See below) It’s designed to be familiar to people who have used the Arduino “wiring” system1
 +
 +
The Raspberry Pi has a 26-pin General Purpose Input/Output (GPIO) connector and this carries a set of signals and buses. There are 8 general purpose digital I/O pins – these can be programmed as either digital outputs or inputs. One of these pins can be designated for PWM output too. Additionally there is a 2-wire I2C interface and a 4-wire SPI interface (with a 2nd select line, making it 5 pins in total) and the serial UART with a further 2 pins.
 +
 +
The Revision 2 Raspberry Pi has an additional 4 GPIO lines on a separate connector which you have to solder onto the board.
 +
 +
The I2C, SPI and UART interfaces can also be used as general purpose I/O pins when not being used in their bus modes, giving a grand total of 8 + 2 + 5 + 2 = 17 I/O pins on the P1 connector (plus 4 more on the P5 connector on a Revision 2 Pi)
 +
 +
WiringPi includes a command-line utility gpio which can be used to program and setup the GPIO pins. You can use this to read and write the pins and even use it to control them from shell scripts.
 +
 +
WiringPi is extendable and modules are provided to extend wiringPi to use analog interface devices on the Gertboard, and to use the popular MCP23x17/MCP23x08 (I2C 7 SPI) GPIO expansion chips, as well as  module that will allow blocks of up to 4 74×595 shift registers to be daisy-chained together for an additional 32-bits worth of output as a single unit. (You can have several blocks of 4 74x595s if needed) One of the extension modules allows you to use an ATmega (e.g. Arduino, or the Gertboard) as more GPIO expansion too – via the Pi’s serial port.
 +
 +
Additionally, you can easily write your own expansion modules to integrate your own peripheral devices with wiringPi as required.
 +
 +
WiringPi supports analog reading and writing, and while there is no native analog hardware on a Pi by default, modules are provided to support the Gertboards analog chips and other A/D and D/A devices can be implemented relatively easily.
 +
 +
== La librairie wiringPi ==
 +
Ou "wiringPi devLib" pour les intimes.
 +
 +
The devLib is a set of library routines implemented using wiringPi to give you easy access to some popular peripherals. Devices supported include character LCD displays (based on the Hitachi HD44780U chips), and graphical ones – e.g. the common 128×64 pixel displays with the generic 12864H driver chip. The DS1302 RTC clock chip, sensors based on the Maxdetect chips (e.g. RHT003) the Gertboard and PiFace interface boards and so on.
 +
 +
== Ressources WiringPi ==
 +
 +
WiringPi Resources
 +
 +
* Raspberry Pi GPIO Pin numbering
 +
* Download and install
 +
* Examples and How-To’s
 +
* WiringPi function referrence manual/documentation
 +
* GPIO Extensions
 +
* DevLib
 +
* The GPIO Utility
 +
 +
=== PiFace ===
 +
WiringPi supporte totalement la [http://mchobby.be/PrestaShop/product.php?id_product=221 carte PiFace]. Voyez [https://projects.drogon.net/raspberry-pi/wiringpiface/ cette page] (anglais) pour plus ce détails.
 +
 +
=== Gertboard ===
 +
 +
WiringPi supporte complètement la carte Gertboard. Voyez [https://projects.drogon.net/raspberry-pi/gertboard-and-wiringpi/ cette page] (anglais) pour plus de détails.
 +
 +
=== Autres ressources ===
 +
Other wiringPi resources:
 +
 +
* Un merci à [http://pi.gadgetoid.co.uk/ Gadgetoid] car il existe maintenant des wrappers pour Ruby, Python et Perl.  Vous pouvez tous les [https://github.com/WiringPi trouver ici].
 +
* Merci a [http://jkransen.wordpress.com/2012/07/16/raspberry-pi/ Jeroen Kransen] qui dispose de wrappers pour Java qui peuvent être [https://github.com/jkransen/framboos trouvés ici].
 +
* Merci à Dave Boulton pour avoir créé un wrapper TCL qui peut [https://github.com/davidb24v/WiringPi-Tcl être trouvé ici].
 +
* [http://pi4j.com/ Pi4J] est un autre projet Java qui utilise WiringPi. Il dispose d'un [https://github.com/Pi4J/pi4j/ dépôt GitHub ici].
    
{{Pi-WiringPi-TRAILER}}
 
{{Pi-WiringPi-TRAILER}}
29 917

modifications

Menu de navigation