-
Notifications
You must be signed in to change notification settings - Fork 295
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
ft6x36.c error in code results in touch not giving correct co-ordinates solved. #118
Comments
Thanks for the detailed information, I think I don't have that particular controller to test your fix. But I will try to add it in the coming days. Regards. |
Thx, if you look at the actual logic, You don't want to invert an axis before swopping it, as the end user expects to invert a specific axis, x or y, and doing that after swopping XY, results in the expected axis being swopped and then obviously deducted from the correct screen coordinate for width and height of display. |
Does 8862804 fixes the issue? |
Yes thanks, it does.
…On Wed, Sep 29, 2021 at 3:59 AM Carlos Diaz ***@***.***> wrote:
Does 8862804
<8862804>
fixes the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMFCXLQ6DDSMGB7AEZLWGDDUEJXGVANCNFSM5E226M3Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Cool, I'll close the issue then. |
I ran into a problem when I updated to master branch using LVGL8.3
Amongst many issues, this was my last stumbling block.
The touch was giving incorrect coordinates, making it unusable.
For my ILI9488, using capacitive touch over I2C, with kconfig:
I got incorrect X values
The reason for this is, that in the code line 118 to 136:
needs to be:
As you can see you must first swap the XY, before inverting, or if inverting y then swopping it, results in you incorrectly inverting x. Now the LV_HOR_RES or LV_VERT_RES is incorrect for that axis, and get crazy values!
My proposed fix fixes the issue for me.
Please check and fix if you agree.
The text was updated successfully, but these errors were encountered: