Hướng dẫn cài đặt màn hình trên Raspberry Pi 2, 3, 4:
Mở Terminal gõ lệnh:
> sudo apt-get update
> sudo apt-get upgrade (Dùng phím Y để đồng ý upgrade)
> reboot
Mở Terminal gõ lệnh
> sudo raspi-config
Màn hình sẽ hiện ra Raspberry pi software configuration tool
-> Chọn Advance Option -> Expand Files System -> Enter
-> Chọn Boot Option -> Desktop/CLI > Desktop Autologin Desktop GUI > Enter.
-> reboot -> Enter
Mở Terminal gõ lệnh:
> git clone https://github.com/waveshare/LCD-show.git
> cd LCD-show/
> sudo ./LCD35-show
Nếu muốn màn hình Xoay x độ :
$ cd LCD-show/
$ ./LCD35-show x
Hướng dẫn điều chỉnh nếu cảm ứng bị ngược:
- B1: cài "xinput-calibrator program" sudo apt-get install xinput-calibrator
- B2: tạo 1 thư mục chứa file lưu cấu hình sudo mkdir /etc/X11/xorg.conf.d
- B3: tạo và mở file để lưu cấu hình sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
- B4: lưu file đó với nội dung sau:
- B5: nhấn "Ctrl+S" để lưu
- B6: nhấn "Ctrl+X" để thoát
- B7: nhập dòng sau để khởi động lại PI reboot
Tags:
raspberry