Matériels :
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
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".
Ouvrir :
/boot/config.txt
Chercher :
#dtparam=spi=on
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
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>