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
Diff: src/FT_GPU_Hal.cpp
- Revision:
- 3:e9de02606330
- Parent:
- 2:293363bbeeda
- Child:
- 4:03932ce8a04e
diff -r 293363bbeeda -r e9de02606330 src/FT_GPU_Hal.cpp
--- a/src/FT_GPU_Hal.cpp Wed Sep 07 22:39:19 2016 +0000
+++ b/src/FT_GPU_Hal.cpp Wed Sep 07 23:11:34 2016 +0000
@@ -104,11 +104,11 @@
Wr16( REG_PWM_HZ, 5000);
-//#ifdef Inv_Backlite // turn on backlite
-// Wr16( REG_PWM_DUTY, 0);
-//#else
+#ifdef Inv_Backlite // turn on backlite
+ Wr16( REG_PWM_DUTY, 0);
+#else
Wr16( REG_PWM_DUTY, 100);
-//#endif
+#endif
Wr8( REG_GPIO_DIR,0x82); //| Rd8( REG_GPIO_DIR));
Wr8( REG_GPIO,0x080); //| Rd8( REG_GPIO));
@@ -120,8 +120,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);
}
