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

too heigh values when rotation is set to normal or inverted #5

Open
daniu-de opened this issue Mar 11, 2023 · 1 comment
Open

too heigh values when rotation is set to normal or inverted #5

daniu-de opened this issue Mar 11, 2023 · 1 comment

Comments

@daniu-de
Copy link

this library works great but if I set Rotation to NORMAL the y values get suspiciously heigh - around 65535 or a bit lower. Seems like some variable overflows ...

y = 0 is also not on the bottom but somewhere in the middle of the screen. Seems like the library assumes 320 to be the heighes value on the top. Going down then gets to zero and further down: 65335
in x direction the heighest value is 480

Am I expecting something diferent from "NORMAL"?

@daniu-de
Copy link
Author

sorry ... my mistake:

#define TOUCH_WIDTH 320
#define TOUCH_HEIGHT 480

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