Ligne 9 : |
Ligne 9 : |
| {{ADFImage|RASP-PiTFT-PLUS-Console-01.jpg|640px}} | | {{ADFImage|RASP-PiTFT-PLUS-Console-01.jpg|640px}} |
| | | |
− | {{bloc-etroit|text=One fun thing you can do with the display is have it as your main console instead of the HDMI/TV output. Even though it is small, with a good font you can get 40 x 60 of text. For more details, check out [https://github.com/notro/fbtft/wiki/Boot-console https://github.com/notro/fbtft/wiki/Boot-console] | + | {{bloc-etroit|text=Une des choses amusantes que vous pouvez réaliser avec le TFT est de l'utiliser comme console principale à la place de la sortie HDMI/TV. Même si vous trouvez qu'il est petit, l'usage d'une font appropriée vous permet d'avoir une affichage texte de 60 x 40 40 x 60. Voyez l'article [https://github.com/notro/fbtft/wiki/Boot-console https://github.com/notro/fbtft/wiki/Boot-console] pour plus de détails. |
| | | |
− | First up, we'll update the boot configuration file to use the TFT framebuffer '''/dev/fb1''' instead of the HDMI/TV framebuffer '''/dev/fb0'''
| + | Pour commencer, nous allons faire une mise-à-jour du fichier de configuration du démarrage (boot) pour utiliser le framebuffer du TFT '''/dev/fb1''' à la place du framebuffer sur de l'HDMI/TV '''/dev/fb0''' |
| | | |
| <nowiki>sudo nano /boot/cmdline.txt</nowiki> | | <nowiki>sudo nano /boot/cmdline.txt</nowiki> |
| | | |
− | you can also edit it by putting the SD card into a computer and opening the same file.
| + | Vous pouvez également éditer ce fichier en placant votre carte SD sur votre ordinateur et en ouvrant le même fichier. |
| | | |
− | At the end of the line, find the text that says '''rootwait''' and right after that, enter in:
| + | Trouvez le texte '''rootwait''' à la fin de la ligne et saisir le texte suivant juste après: |
− | '''fbcon=map:10 fbcon=font:VGA8x8''' then save the file.
| |
| | | |
− | On the next boot, it will bring up the console.
| + | '''fbcon=map:10 fbcon=font:VGA8x8''' |
| | | |
− | Note that the kernel has to load up the display driver module before it can display anything on it so you won't get the rainbow screen, a NooBs prompt, or a big chunk of the kernel details since the module is loaded fairly late in the boot process. | + | puis sauvez le fichier. |
| + | |
| + | Le activera la console au prochain redémarrage. |
| + | |
| + | {{underline|Note:}} le noyaux doit charger le module pilotant le TFT avant d'afficher quoi que ce soit sur l'écran TFT. De fait, vous ne verrez jamais la mosaïque arc-en-ciel du Raspberry-Pi. Dans le même ordre d'idée, l'écran d'accueil/sélection de Noobs ne sera pas visible et de nombreux message de débogage (précédent le chargement du module TFT) ne seront pas visible. |
| | | |
| On the next boot, it will bring up the console. | | On the next boot, it will bring up the console. |