range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 92 www.xunlong.tv
8) Method for setting system startup to automatically load fbtft_device module
a. Create a new /etc/modules-load.d/fbtft.con configuration file, the content of the
file is as follows
root@orangepi:~# cat /etc/modules-load.d/fbtft.conf
fbtft_device
b. Create a new /etc/modprobe.d/fbtft.conf configuration file, the content of the
file is as follows
root@orangepi:~# cat /etc/modprobe.d/fbtft.conf
options fbtft_device custom name=fb_ili9341 busnum=0 cs=0
gpios=reset:110,dc:68 rotate=90 speed=65000000 bgr=1 txbuflen=65536
c. Then restart the linux system and you can see that the kernel modules related to
fbtft_device have been automatically loaded
9) If you want the linux system to automatically map the console to the LCD display
after booting, please add the following configuration to /boot/orangepiEnv.txt, and then
restart the system to see the LCD display output
root@orangepi:~# cat /boot/orangepiEnv.txt | grep "fbcon"
extraargs=fbcon=map:8
3.26.2.
3.2 inch RPi SPI LCD display
1) The link to the tested LCD display details page is as follows
http://www.lcdwiki.com/3.2inch_RPi_Display
2) The wiring method of the LCD display and the development board is as follows
3) After connecting the LCD display to the development board, use the following
command to load the fbtft_device kernel module
root@orangepi:~# modprobe fbtft_device custom name=fb_ili9341 busnum=0 cs=0