Modifications

Sauter à la navigation Sauter à la recherche
223 octets ajoutés ,  13 septembre 2013 à 21:36
Ligne 14 : Ligne 14 :  
Par exemple, en utilisant WiringPi sur votre Raspberry, la "pin 0" correspond à la broche "GPIO broche 17" du BCM.
 
Par exemple, en utilisant WiringPi sur votre Raspberry, la "pin 0" correspond à la broche "GPIO broche 17" du BCM.
   −
However this has subsequently been viewed as “wrong” and several people have expressed concern about my numbering scheme, however I’ve stuck with it (as by then people were using wiringPi). and it’s proven its worth over the hardware board revisions where some pins changed their hardware definitions, however wiringPi was able to hide this from the user. As a result (for example) a program that uses wiringPi pin 2 on a Rev. 1 Pi will work unchanged on a Rev 2. Pi, however someone using BCM_GPIO pin 21 on a Rev 1 Pi will need to change their program to use BCM_GPIO pin 27 on a Rev 2.}}
+
Plusieurs personnes voyait cette approche comme "erronée" et ont exprimés leur préoccupations vis-à-vis de ce schéma de numérotation. Cependant, Gordon était coincé avec ce schéma (de plus en plus de personnes utilisaient wiringPi). Mais ce modèle fit ses preuves au cours des différentes révisions matérielles où certaines broches furent déplacées sur le GPIO. Le modèle utilisé par WiringPi fut capable de caché ces ces changement à l'utilisateur.  
 +
 
 +
Par conséquent (a titire d'exemple) un programme qui utilise la broche 2 de wiringPi sur un Pi révision 1 fonctionnera sans changement sur une révision 2. Cependant, si quelqu'un utilisait directement la broche BCM_GPIO 21 sur un Pi résivion 1, il devait alors modifié sont programme pour utiliser la broche BCM_GPIO 27 sur un Pi révision 2.}}
    
So wiringPi supports its own pin numbering scheme as well as the BCM_GPIO pin numbering scheme, and as of Version 2, it also supports the physical hardware pin numbers (for the P1 connector only), but I would like to suggest you stick to the simplified wiringPi pin numbers. That way your programs will be portable over different hardware revisions without needing any changes.
 
So wiringPi supports its own pin numbering scheme as well as the BCM_GPIO pin numbering scheme, and as of Version 2, it also supports the physical hardware pin numbers (for the P1 connector only), but I would like to suggest you stick to the simplified wiringPi pin numbers. That way your programs will be portable over different hardware revisions without needing any changes.
29 917

modifications

Menu de navigation