Modifications

Sauter à la navigation Sauter à la recherche
Ligne 22 : Ligne 22 :     
== Le connecteur GPIO ==
 
== Le connecteur GPIO ==
−
The buttons are wired to the last six pins at the bottom of the GPIO header pins on the Pi.
+
Les boutons sont raccordés sur les 6 dernières broches en bas du GPIO du Pi.
    
Voici comment les raccorder sur le connecteur GPIO.
 
Voici comment les raccorder sur le connecteur GPIO.
Ligne 28 : Ligne 28 :  
[[Fichier:RASP-SENSE-HAT-ASTRO-PI-Bouton-02.png|480px]]
 
[[Fichier:RASP-SENSE-HAT-ASTRO-PI-Bouton-02.png|480px]]
   −
Note the orientation of the pin diagram is with the Ethernet and USB ports facing downwards, and the row of pins on the right hand side of the Pi.
+
Note: l'orientation du diagramme des broches correspond aux broches de votre Pi avec le port USB et Ethernet placé vers le bas, et les rangées de broche du GPIO à main droite sur le Raspberry-Pi.
   −
This means that this setup cannot be exactly replicated if you're using an old model A or B Pi. If you are using an older model you can choose other pins, but be sure to modify the pin numbering in your code so that it will work on a flight unit before you submit via the competition website.
+
Cela signifie que cette configuration ne peut pas être utilisée si vous utilisez un ancien Raspberry A et/ou B. Si vous utilisez un ancien modèle, vous devrez choisir d'autres broches, mais aussi modifier les numéros de broches dans votre code.
−
 
  −
These are the pin assignments:
      +
Voici l'assignation des broches:
 
* Les quatres boutons supérieurs:
 
* Les quatres boutons supérieurs:
−
** UP: GPIO 26, pin 37
+
** Haut = UP: GPIO 26, broche 37
−
** DOWN: GPIO 13, pin 33
+
** Bas = DOWN: GPIO 13, broche 33
−
** LEFT: GPIO 20, pin 38
+
** Gauche = LEFT: GPIO 20, broche 38
−
** RIGHT: GPIO 19, pin 35
+
** Droite = RIGHT: GPIO 19, broche 35
−
* Bottom pair
+
* La paire de bouton du bas
−
** A (left): GPIO 16, pin 36
+
** A (sur la gauche): GPIO 16, broche 36
−
** B (right): GPIO: 21, pin 40
+
** B (sur la droite): GPIO: 21, broche 40
   −
If you use these buttons in your Astro Pi competition entry, then you will need to comply with these pin assignments in order for your code to work on the flight hardware that Tim Peake will have on the ISS.
+
Si vous utilisez ces boutons pour réaliser votre projet alors vous aurez besoin de vous conformer a cet assignation de broche.
    
== Détecter un bouton ==
 
== Détecter un bouton ==
32 920

modifications

Menu de navigation