Forked para SNOCC

Dependencies:   GPS

Dependents:   SNOCC_V1 SNOCC_V2

Fork of RA8875 by SNOCC

Files at this revision

API Documentation at this revision

Comitter:
gstedile
Date:
Fri Jun 23 03:58:47 2017 +0000
Parent:
117:658889d1eeb8
Commit message:
20170622

Changed in this revision

RA8875_Touch.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/RA8875_Touch.cpp	Tue Apr 04 06:17:02 2017 +0000
+++ b/RA8875_Touch.cpp	Fri Jun 23 03:58:47 2017 +0000
@@ -91,7 +91,7 @@
     pTest[0].x = 50;            pTest[0].y = 50;
     pTest[1].x = width() - 50;  pTest[1].y = height()/2;
     pTest[2].x = width()/2;     pTest[2].y = height() - 50;
-
+    /*                                                        // Codigo comentado para fijar calibracion del touch panel
     for (int i=0; i<3; i++) {
         foreground(Blue);
         printf(" (%3d,%3d) => ", pTest[i].x, pTest[i].y);
@@ -112,7 +112,17 @@
     if (timeout.read() >= maxwait_s)
         return touch_cal_timeout;
     else
-        return TouchPanelComputeCalibration(pTest, pSample, matrix);
+     */  
+        // Codigo agregado para configuracion fija:
+        pSample[0].x = 993;
+        pSample[0].y = 867;
+        pSample[1].x = 168;
+        pSample[1].y = 559;
+        pSample[2].x = 582;
+        pSample[2].y = 263;
+        // Fin codigo agregado 
+        
+         return TouchPanelComputeCalibration(pTest, pSample, matrix);
 }