Resistive TouchScreen e.g. for MCUFRIEND Display Shields

Dependents:   TFT_Touch_botao_v1 TFT_Touch_exemplo5_git_touch TESTE_1 TFT_Touch_exemplo6_git_touch_button_3_ ... more

Files at this revision

API Documentation at this revision

Comitter:
davidprentice
Date:
Mon May 17 08:10:08 2021 +0000
Parent:
1:849734501e5a
Commit message:
set output() when leaving getPoint(). not for readTouchX() etc

Changed in this revision

TouchScreen_kbv_mbed.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TouchScreen_kbv_mbed.cpp	Mon Apr 26 16:27:29 2021 +0000
+++ b/TouchScreen_kbv_mbed.cpp	Mon May 17 08:10:08 2021 +0000
@@ -139,8 +139,8 @@
     z = (1023 - (z2 - z1));
 
     // *** these two lines would ensure XM, YP are in Digital mode ***
-    //pinModeVal(_xm, 1, 1); // OUTPUT HIGH
-    //pinModeVal(_yp, 1, 1); // OUTPUT HIGH
+    pinModeVal(_xm, 1, 1); // OUTPUT HIGH
+    pinModeVal(_yp, 1, 1); // OUTPUT HIGH
 
     return TSPoint_kbv(x, y, z);  //XM, YP still in ANALOG mode
 }