-
Notifications
You must be signed in to change notification settings - Fork 109
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
CST816S touch and ST7789 display (X axis inverted) (BSP-406) #234
Comments
Hi @krupis, the CST816S driver in your project is an old version, please update to v1.3.0 and use with ISR feature (example).
|
@Lzw655 I have tried all possible combinations of
and none of them work sadly. I am perform a couple of tests where I flash the device with different TEST1
This is the initial configuration. The X axis is inverted as shown in the youtube video attached to initial post. The touch coordinates go as below: TEST2
The slider does not react to the touch at all. Please see the coordinates below As you can see its really strange. The y coordinates no longer goes from 0 to 170 but from 320 to 150. Could you help me understand this? Is there anything else you would like to me to test? |
Please try to swap the |
You are right. I have managed to get my display and touch working properly with the following parameters:
but it is not fully clear to me why do I need to use |
We will add documents to introduce these API usages in the future. Here, let me briefly explain this: |
@Lzw655
The coordinates are as following: With the above configuration, the slider works perfectly fine. If I use
In this configuration, the X axis is inverted and Y also does not work properly As you previously shown in the Lilygo picture, the resolution is 170x320, but since I use the display in horizontal position, I want my longer axis (horizontal axis), to be longer if that makes sense. |
Oh, sorry for that mistake. The esp-bsp/components/lcd_touch/esp_lcd_touch/esp_lcd_touch.c Lines 88 to 103 in 162d138
That means we should mirror the actual axis. |
@Lzw655 |
Anytime! |
I am creating this issue to solve :
krupis/T-Display-S3-esp-idf#1
An issue has been discovered on T-Display-S3 development board from Lilygo:
https://www.lilygo.cc/products/t-display-s3
The issue is that the X axis for touch seems to be inverted which does not allow to use sliders and other display elements that require proper X axis.
The example project can be found:
https://github.com/krupis/T-Display-S3-esp-idf
The example contains a simple slider. Please see the video attached below:
https://www.youtube.com/shorts/KaQ7J90QQLY
I have tried to play around with
esp_lcd_panel_mirror
but could not achieve the proper results. Please can someone suggest how to ensure the X axis is not inverted for touch?The text was updated successfully, but these errors were encountered: