Path: /home/nyrjjbc/labo/user/pages/15.atelier/808.installation_dun_ecran_ld_18_sur_un_raspberry_zero/chapter.md
Failed to read /home/nyrjjbc/labo/user/pages/15.atelier/808.installation_dun_ecran_ld_18_sur_un_raspberry_zero/chapter.md: Unexpected characters near " sur un Raspberry Zero"" at line 1 (near "title: "Installation d'un écran LD 1.8" sur un Raspberry Zero"").
---
title: "Installation d'un écran LD 1.8" sur un Raspberry Zero"
date: '01-05-2021 00:05'
publish_date: '14-02-2021 22:22'
dateformat: 'd-m-Y H:i'
hero_classes: 'text-light title-h1h2 overlay-dark-gradient hero-large parallax'
hero_image: boa2.png
show_sidebar: true
content:
items: '- ''@self.children'''
limit: '5'
order:
by: date
dir: desc
pagination: '1'
url_taxonomy_filters: '1'
feed:
limit: 10
published: true
---
# Installation d'un écran LD 1.8" sur un Raspberry Zero
Matériels :
- Raspberry Zero WH : <https://www.gotronic.fr/art-carte-raspberry-pi-zero-wh-27670.htm>
- Ecran 1,8'' RB-TFT1.8 : <https://www.gotronic.fr/art-ecran-1-8-rb-tft1-8-26567.htm>
Site officiel : <https://joy-it.net/en/products/RB-TFT1.8>
Autre site : <https://www.tweaking4all.com/hardware/arduino/sainsmart-arduino-color-display/>
### 1/ Branchement entre l'écran et le Raspberry Pi.
Documentation : <https://joy-it.net/files/files/Produkte/RB-TFT1.8/RB-TFT1.8-Manual.pdf>
Table de correspondance :
Raspberry Zero Ecran PIN 1 (+3.3V) +5V PIN 6 (GND) GND PIN 23 (SCLK) SCL PIN 19 (MOSI) SDA PIN 18 (GPIO 24) RS/DC PIN 22 (GPIO 25) RES PIN 24 (CE0) CS
[](https://miniordi.hacktech.dev/7765-2/raspberrypi-zero-wh-w11/)
[](https://miniordi.hacktech.dev/7765-2/sainsmart_1-8inch_color_display/)
### 2/ Distribution de travail.
Raspbian : 2017-07-05-raspbian-jessie.zip
<https://downloads.raspberrypi.org/raspbian/images/raspbian-2017-07-05/>
pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l GNU/Linux
Les dernières versions de Raspberry OS sont en noyau 5.0 et n'inclut pas le module "fbtft".
### 3/ Reconnaissance de l'écran LCD : Configuration des fichiers.
Ouvrir :
/boot/config.txt
Chercher :
Décommenter :
dtparam=spi=on
Ouvrir :
/boot/cmdline.txt
Ajouter à la fin :
fbcon=map:10
Ouvrir :
/usr/share/X11/xorg.conf.d/99-fbturbo.conf
Chercher :
Option "fbdev" "/dev/fb0"
Remplacer par :
Option "fbdev" "/dev/fb1"
Créer :
/etc/modules-load.d/fbtft.conf
Ajouter :
spi-bcm2835 fbtft_device
Créer :
/etc/modprobe.d/fbtft.conf
Ajouter :
options fbtft_device name=sainsmart18 rotate=90
### 4/ Configuration du Terminal LXDE.
Permet d'afficher le terminal, sans décoration, en haut à gauche du bureau.
Ouvrir :
~/.config/lxsession/LXDE-pi/autostart
Ajouter à la fin :
@lxterminal
Ouvrir :
~/.config/openbox/lxde-pi-rc.xml
Chercher :
< applications>
Ajouter après :
< application class="Lxterminal" name="lxterminal"> < position force="yes"> < x>0< /x> < y>0< /y> < decor>no< /decor> < /position> < /application>
### 5/ Montage.
[](https://miniordi.hacktech.dev/installation-dun-ecran-ld-1-8-sur-un-raspberry-zero/img_20210214_203709759/)