Nous pouvons maintenant afficher nos couleurs sur l'écran - faisons le aussi depuis les GPIOs!
−
So, we can paint colours on the screen - let's do this from GPIs!
+
{{ADFImage|RASP-PYGAME-GUI-GPIO-00.jpg}}
−
{{ADFImage|RASP-PYGAME-GUI-GPIO-00.jpg}}
+
Nous allons utiliser les boutons tactiles qui se trouvent le long de l'écran. Nous allons afficher le N° de GPIO et un fond d'écran coloré.
−
We'll use the four tactile buttons along the bottom of the screen to draw the GPIO number and a coloured background. From left to right the buttons correspond to GPIO #23, #22, #27, and #18.
+
De la gauche sur la droite (sur ce modèle de PiTFT) les boutons correspondent aux GPIO GPIO #23, #22, #27 et #18. Cette information est également lisible sur la sérigraphie.
−
(Note: If you have a revision 1 board then #27 is #21 - you'll just have to change the code a little)
+
(Note: si vous disposez de la révision 1 de la carte alors c'est le GPIO #21 qui est utilisé à la place de #27 - Il vous faudra modifier un peu le code)