Modifications

Sauter à la navigation Sauter à la recherche
708 octets ajoutés ,  20 juin 2016 à 11:00
Page créée avec « {{RASP-PiTFT-NAV}} == 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... »
{{RASP-PiTFT-NAV}}

== 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

{{ADFImage|RASP-PiTFT-Pygame-00.jpg}}


Installer Pygame:

sudo apt-get install python-pygame

(ce qui prend un temps certain)

{{ADFImage|RASP-PiTFT-Pygame-01.jpg}}

== Utiliser la SDL 1.2 ==
'''Assurez-vous de bien utiliser la SDL 1.2'''

xxx


{{RASP-PiTFT-TRAILER}}
29 917

modifications

Menu de navigation