diff --git a/examples/Touch_shield_new/Touch_shield_new.ino b/examples/Touch_shield_new/Touch_shield_new.ino index a160fd6..d97546e 100644 --- a/examples/Touch_shield_new/Touch_shield_new.ino +++ b/examples/Touch_shield_new/Touch_shield_new.ino @@ -149,7 +149,7 @@ void loop() break; case 3: xpos = map(tp.y, TS_BOT, TS_TOP, 0, tft.width()); - ypos = map(tp.y, TS_LEFT, TS_RT, 0, tft.height()); + ypos = map(tp.x, TS_LEFT, TS_RT, 0, tft.height()); break; }