Library for FT810 EVE chip

Fork of FT810 by Curtis Mattull

Revision:
4:03932ce8a04e
Parent:
3:e9de02606330
Child:
5:506e2de9a9e6
--- a/src/FT_GPU_Hal.cpp	Wed Sep 07 23:11:34 2016 +0000
+++ b/src/FT_GPU_Hal.cpp	Sat Sep 17 15:07:06 2016 +0000
@@ -102,14 +102,12 @@
     DispPCLK = my_DispPCLK;
     Wr8(  REG_PCLK, DispPCLK);//after this display is visible on the LCD
 
-    Wr16(  REG_PWM_HZ, 5000);
-
-#ifdef Inv_Backlite               // turn on backlite
-    Wr16(  REG_PWM_DUTY, 0);
-#else
-    Wr16(  REG_PWM_DUTY, 100);
-#endif
-
+    Wr16(  REG_PWM_HZ, 10000);
+//#ifdef Inv_Backlite               // turn on backlite
+//    Wr16(  REG_PWM_DUTY, 0);
+//#else
+    Wr16(  REG_PWM_DUTY, 128);
+//#endif
     Wr8(  REG_GPIO_DIR,0x82);  //| Rd8( REG_GPIO_DIR));
     Wr8(  REG_GPIO,0x080);     //| Rd8( REG_GPIO));
 
@@ -120,9 +118,8 @@
     Wr16(  REG_PCLK, DispPCLK);
 
     /* Touch configuration - configure the resistance value to 1200 - this value is specific to customer requirement and derived by experiment */
-    Wr16(  REG_TOUCH_RZTHRESH,2400);
-//    Wr16(  REG_TOUCH_RZTHRESH,0xFFFF);
-
+//    Wr16(  REG_TOUCH_RZTHRESH,2400);
+    Wr16(  REG_TOUCH_RZTHRESH,0xFFFF);
 
 }