樹莓派連線觸控式螢幕方法(Raspberry Pi 3.5寸 B/B+/2B LCD液晶屏)
阿新 • • 發佈:2019-02-10
資料
3.5inch RPi LCD (A)FAQ
在自定義Raspbian系統映象上怎麼使用樹莓派LCD?
先確保自定義映象可正常進入桌面,執行命令
sudo raspi-config
確定已選擇:Enable Boot to Desktop/Scratch -> Desktop Log in as user ‘pi’ at the graphical desktop
下載樹莓派LCD驅動,解壓,將LCD-show.tar.gz通過網路或U盤,複製到自定義的映象中,執行命令
tar xvf LCD-show.tar.gz cd LCD-show/ #3.2inch RPi LCD (B)執行 sudo ./LCD32-show #3.5inch RPi LCD (A)執行 sudo ./LCD35-show #4inch RPi LCD (A)執行 sudo ./LCD4-show #5inch HDMI LCD執行 sudo ./LCD5-show
等待幾分鐘,系統自動重啟,即可正常使用樹莓派LCD
如果想切換為HDMI顯示,只需執行命令
sudo ./LCD-hdmi
更新映象之後無法使用?
更新需按照以下方式進行,否則可能導致映象無法執行:
sudo apt-mark hold raspberrypi-bootloader sudo apt-get update sudo apt-get upgrade
如何旋轉3.5inch RPi LCD (A)的顯示方向?
在終端執行命令:sudo nano /etc/modules
- 如需旋轉90度,則:
width=320 height=480 改為: width=480 height=320 -1,0x36,0x28,-1 改為: -1,0x36,0x48,-1
- 如需旋轉180度,則:
-1,0x36,0x28,-1 改為: -1,0x36,0xe8,-1
- 如需旋轉270度,則:
width=320 height=480 改為: width=480 height=320 -1,0x36,0x28,-1 改為: -1,0x36,0x88,-1
按鍵盤Ctrl + X,選擇Y,儲存退出
在終端執行命令:sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
顯示如下圖所示(觸控引數以實際值為準)
- 如需旋轉90度,則更改如下:
- 如需旋轉180度,則更改如下:
- 如需旋轉270度,則更改如下:
3.5inch RPi LCD (A)正常工作的工作電流是?
正常工作電流約為115mA。