RASP-PiTFT-Pygame
Truc et astuces Pygame pour le PiTFT
Since the PiTFT screen is fairly small, you may need to write custom UI programs. Pygame is the easiest way by far to do this.
Jeremy Blythe has an excellent tutorial here on getting started.
However, before you follow that link you'll want to set up pygame for the best compatibility:
Installer pip & pygame
Pour installer pip
sudo apt-get install python-pip
Crédit: AdaFruit Industries www.adafruit.com
Installer Pygame:
sudo apt-get install python-pygame
(ce qui prend un temps certain)
Crédit: AdaFruit Industries www.adafruit.com
Utiliser la SDL 1.2
Assurez-vous de bien utiliser la SDL 1.2
xxx
Source: Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi
Créé par LadyAda pour AdaFruit Industries.
Augmenté par Meurisse D. pour MCHobby
Traduction réalisée par Meurisse D pour MCHobby.be.
Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : « Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.
L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.
Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com