diff --git a/docs/accessories/peripherals/waveshare-35-display.md b/docs/accessories/peripherals/waveshare-35-display.md index 718bb4821..6e81a22aa 100644 --- a/docs/accessories/peripherals/waveshare-35-display.md +++ b/docs/accessories/peripherals/waveshare-35-display.md @@ -21,7 +21,7 @@ sidebar_position: 10 [*] Enable Waveshare 3.5 inch Display on SPI1 ``` -## 配置屏幕 +## 配置显示 - 备份 /etc/X11/xorg.conf.d/20-modesetting.conf @@ -42,6 +42,18 @@ EndSection 需要检查一下具体设备是 /dev/fb0 还是 /dev/fb1 +## 配置触摸 + +在 /etc/X11/xorg.conf.d 下添加一个配置文件 99-touchscreen-calibration.conf,内容如下: + +``` +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "TransformationMatrix" "-1 0 1 0 1 0 0 0 1" +EndSection +``` + ## 重启系统 ``` diff --git a/i18n/en/docusaurus-plugin-content-docs/current/accessories/peripherals/waveshare-35-display.md b/i18n/en/docusaurus-plugin-content-docs/current/accessories/peripherals/waveshare-35-display.md index d409777cd..4ba4a138a 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/accessories/peripherals/waveshare-35-display.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/accessories/peripherals/waveshare-35-display.md @@ -14,13 +14,14 @@ Connect the screen with the development board as follows: - after entering rsetup, enter the device tree management interface. + - Enable the overlay of Waveshare 3.5 inch Display ``` [*] Enable Waveshare 3.5 inch Display on SPI1 ``` -## Config the screen +## Config the display - backup /etc/X11/xorg.conf.d/20-modesetting.conf @@ -41,6 +42,18 @@ EndSection please check whether the device is /dev/fb0 or /dev/fb1. +## Configure Touch + +Add a configuration file 99-touchscreen-calibration.conf under /etc/X11/xorg.conf.d with the following contents: + +``` +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "TransformationMatrix" "-1 0 1 0 1 0 0 0 1" +EndSection +``` + ## Reboot the system ```