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

Touch position is not correct when the display set to vertical. #30

Open
karock5345 opened this issue May 31, 2024 · 1 comment
Open

Comments

@karock5345
Copy link

karock5345 commented May 31, 2024

Touch position is not correct when the display set to vertical. Thank you.
顯示設置垂直 觸控位置錯誤 , 謝謝

10.1inch DSI LCD (C) 1280×800
5.15.84 64

@karock5345 karock5345 changed the title 顯示設置垂直不能用, 謝謝 Touch position is not correct when the display set to vertical. May 31, 2024
@karock5345
Copy link
Author

Solved:

sudo nano /boot/firmware/config.txt

edit:

#0°:
dtoverlay=WS_xinchDSI_Touch,I2C_bus=10,invertedx,swappedxy
#90°:
dtoverlay=WS_xinchDSI_Touch,I2C_bus=10,invertedx,invertedy
#180°:
dtoverlay=WS_xinchDSI_Touch,I2C_bus=10,invertedy,swappedxy
#270°:
dtoverlay=WS_xinchDSI_Touch,I2C_bus=10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant