Modifications

Sauter à la navigation Sauter à la recherche
1 047 octets supprimés ,  19 juin 2016 à 18:01
Ligne 102 : Ligne 102 :  
Save the file and reboot the Pi with '''sudo reboot''' and look at the console output (or run '''dmesg''' in the console window after logging in) you will see the modules install. Look in particular for the STMPE610 detection and the ILI9340 screen frequency as highlighted here
 
Save the file and reboot the Pi with '''sudo reboot''' and look at the console output (or run '''dmesg''' in the console window after logging in) you will see the modules install. Look in particular for the STMPE610 detection and the ILI9340 screen frequency as highlighted here
    +
{{ADFImage|RASP-PiTFT-Install-Pi2-Facile-00f.jpg}}
   −
{{traduction}}
+
We can set up the touchscreen for '''rotate=90''' configuration by doing the following (for more delicate calibration or for other rotate=XX values, see the next section)
   −
Pour télécharger les différents fichiers nécessaires, vous devez exécuter les commandes suivantes:
+
Create the directory and new calibration configuration file:
   −
  <nowiki>cd ~
+
  sudo mkdir /etc/X11/xorg.conf.d
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
+
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
  −
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
  −
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
  −
wget http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-112613.deb</nowiki>
     −
{{ADFImage|RASP-PiTFT-Soft-Install-02.png|480px}}
+
and enter in the following lines, then save.
    +
<nowiki>Section "InputClass"
 +
        Identifier      "calibration"
 +
        MatchProduct    "stmpe-ts"
 +
        Option  "Calibration"  "3800 200 200 3800"
 +
        Option  "SwapAxes"      "1"
 +
EndSection</nowiki>
   −
Installez ensuite le nouveau Kernel avec la commande:
+
{{ADFImage|RASP-PiTFT-Install-Pi2-Facile-00g.jpg}}
   −
<nowiki>sudo dpkg -i -B *.deb</nowiki>
+
You can now try to run X again with
   −
Cela prendra quelques minutes... c'est donc le moment idéal pour faire un café ou un sandwich.
+
FRAMEBUFFER=/dev/fb1 startx
   −
{{ADFImage|RASP-PiTFT-Soft-Install-03.png|480px}}
+
Type Control-C to quit X
   −
{{ADFImage|RASP-PiTFT-Soft-Install-03b.png|480px}}
+
If you don't ever want to have to type FRAMEBUFFER=/dev/fb1 before startx, you can make it a default state by editing your profile file: sudo nano ~/.profile and adding
   −
Maintenant, il ne reste plus qu'a rebooter pour achever l'installation.
+
export FRAMEBUFFER=/dev/fb1
   −
Faite un '''shutdown''' ("arrêt") si vous n'avez pas encore installé le TFT. Une fois arrêté, débranchez l'alimentation, placez le TFT sur le Pi et remettez sous tension.
+
near the top and saving the file. Then reboot to reload the profile file. It will now always assume you want to use /dev/fb1
   −
<nowiki>sudo shutdown -h now</nowiki>
+
{{ADFImage|RASP-PiTFT-Install-Pi2-Facile-00h.jpg}}
 
  −
Si votre TFT est déjà en place, faite simplement un '''reboot''' avec l'instruction suivante:
  −
 
  −
<nowiki>sudo reboot</nowiki>
  −
 
  −
Maintenant que vous avez rebooté, connectez vous en mode console (via le cable console/TV/SSH). L'écran n'est pas encore actif, nous allons d'abord vérifier que tout est en ordre!
  −
 
  −
Exécutez la commande suivante pour installer le pilote de l'écran. Notez de l'écran passera de blanc à noir indiquant ainsi que la commande est exécutée avec succès.
  −
 
  −
<nowiki>sudo modprobe spi-bcm2708
  −
sudo modprobe fbtft_device name=adafruitts rotate=90
  −
export FRAMEBUFFER=/dev/fb1
  −
startx</nowiki>
  −
 
  −
{{ADFImage|RASP-PiTFT-Soft-Install-04.png|480px}}
  −
 
  −
Vous devriez voir le bureau Raspbian apparaître sur le TFT!
  −
 
  −
Félicitation, vous venez de finir le premier test avec succès. Nous allons maintenant installer automatiquement les modules noyaux du TFT au boot (''démarrage'').
  −
 
  −
Enfoncez les touches CONTROL-C de la consome pour quitter ''X serveur'' (afin de poursuivre la configuration)
      
== Auto-chargement des modules ==
 
== Auto-chargement des modules ==
29 917

modifications

Menu de navigation