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

Wrong function call #7

Open
Okayler opened this issue Sep 13, 2023 · 0 comments
Open

Wrong function call #7

Okayler opened this issue Sep 13, 2023 · 0 comments

Comments

@Okayler
Copy link

Okayler commented Sep 13, 2023

Must correct this line of code in TouchButton.cpp

uint16_t x = map(p.y, TS_MINY, TS_MAXY, 0,320 );
uint16_t y = map(p.x, TS_MINX, TS_MAXX, 240, 0);

to

uint16_t x = map(p.y, TS_MINY, TS_MAXY, 320,0 );
uint16_t y = map(p.x, TS_MINX, TS_MAXX, 240, 0);

because my touch was inverted, maybe it is a problem of my screen .. idk

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