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 · 2 comments
Open

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

karock5345 opened this issue May 31, 2024 · 2 comments

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

@Pablojosep
Copy link

Pablojosep commented Jan 7, 2025

I guess waveshare could help us, i been trying to rotate the touch for hours..... i haven't had any success:

bookworm 12, cm4, 2.8inch dsi screen

ignore_lcd=1
dtparam=i2c_vc=on
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-waveshare-panel,2_8_inch
dtoverlay=WS_xinchDSI_Screen,SCREEN_type=0,I2C_bus=10
dtoverlay=WS_xinchDSI_Touch,I2C_bus=10,swappedxy,invertedx,invertedy

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

2 participants