Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: add touch configuration of waveshare screen #63

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/accessories/peripherals/waveshare-35-display.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sidebar_position: 10
[*] Enable Waveshare 3.5 inch Display on SPI1
```

## 配置屏幕
## 配置显示

- 备份 /etc/X11/xorg.conf.d/20-modesetting.conf

Expand All @@ -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
```

## 重启系统

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ Connect the screen with the development board as follows:

- after entering rsetup, enter the device tree management interface.
<!-- - after entering rsetup, follow [Device Tree Settings](/radxa-os/rsetup/devicetree) to 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

Expand All @@ -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

```
Expand Down