Wrong function call
Okayler opened this issue · 0 comments
Okayler commented
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