Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RA8875 by
Revision 118:0973c6527882, committed 2017-06-23
- 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);
 }
 
 
    