grafmar / Arduino-Reflow-Oven

Control unit using Arduino to modify pizza oven to a reflow oven
MIT License
21 stars 2 forks source link

Wrong function call #7

Open Okayler opened 1 year ago

Okayler commented 1 year ago

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