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 FT810 by
Revision 2:293363bbeeda, committed 2016-09-07
- Comitter:
- cpm219
- Date:
- Wed Sep 07 22:39:19 2016 +0000
- Parent:
- 1:75efdc9d4bc2
- Child:
- 3:e9de02606330
- Commit message:
- updated reg_touch_rzthresh
Changed in this revision
| src/FT_GPU_Hal.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/src/FT_GPU_Hal.cpp Wed Sep 07 22:22:32 2016 +0000
+++ b/src/FT_GPU_Hal.cpp Wed Sep 07 22:39:19 2016 +0000
@@ -102,13 +102,13 @@
DispPCLK = my_DispPCLK;
Wr8( REG_PCLK, DispPCLK);//after this display is visible on the LCD
- Wr16( REG_PWM_HZ, 250);
+ Wr16( REG_PWM_HZ, 5000);
-#ifdef Inv_Backlite // turn on backlite
- Wr16( REG_PWM_DUTY, 0);
-#else
- Wr16( REG_PWM_DUTY, 128);
-#endif
+//#ifdef Inv_Backlite // turn on backlite
+// Wr16( REG_PWM_DUTY, 0);
+//#else
+ Wr16( REG_PWM_DUTY, 100);
+//#endif
Wr8( REG_GPIO_DIR,0x82); //| Rd8( REG_GPIO_DIR));
Wr8( REG_GPIO,0x080); //| Rd8( REG_GPIO));
@@ -120,7 +120,9 @@
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,2400);
+ Wr16( REG_TOUCH_RZTHRESH,0xFFFF);
+
}
