waveshareteam / Waveshare-DSI-LCD

28 stars 14 forks source link

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

Open karock5345 opened 6 months ago

karock5345 commented 6 months ago

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 commented 6 months ago

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