From 0064434d1db8d18640959cd1187bee58045eda80 Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Sun, 30 Dec 2018 10:04:57 +0000 Subject: [PATCH] corrected tp.y typo in LANDSCAPE_REV case --- examples/Touch_shield_new/Touch_shield_new.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }