Driver Library for our displays

Dependents:   dm_bubbles dm_calc dm_paint dm_sdcard_with_adapter ... more

Revision:
11:264e19992620
Parent:
9:bac5439e3c1c
--- a/DmTouchCalibration.cpp	Wed Jul 09 08:31:34 2014 +0000
+++ b/DmTouchCalibration.cpp	Wed Jan 21 13:56:51 2015 +0000
@@ -57,7 +57,22 @@
       calibrationMatrix.e = 73762;    //    65173;
       calibrationMatrix.f = -26384255;//-19179080;
       break;
-
+    case DmTouch::DM_TFT43_108:   // or DM_TFT43_110
+      calibrationMatrix.a = 541307;
+      calibrationMatrix.b = -4288;
+      calibrationMatrix.c = -36678732;
+      calibrationMatrix.d = 2730;
+      calibrationMatrix.e = 321714;
+      calibrationMatrix.f = -31439472;    
+      break;
+    case DmTouch::DM_TFT50_111:   // or  DM_TFT50_112
+      calibrationMatrix.a = 875894;
+      calibrationMatrix.b = 1655;
+      calibrationMatrix.c = -53695309;
+      calibrationMatrix.d = -993;
+      calibrationMatrix.e = 544421;
+      calibrationMatrix.f = -41496753;                    
+      break;   
     default:
       break;
   }
@@ -212,7 +227,6 @@
   calibrationData.d = (int32_t)(D * _touch->rescaleFactor());
   calibrationData.e = (int32_t)(E * _touch->rescaleFactor());
   calibrationData.f = (int32_t)(F * _touch->rescaleFactor());
-
   return calibrationData;
 }