808
Dependents: Chromatograph_Mobile
Diff: src/FT_GPU_Hal.cpp
- Revision:
- 2:293363bbeeda
- Parent:
- 1:75efdc9d4bc2
- Child:
- 3:e9de02606330
diff -r 75efdc9d4bc2 -r 293363bbeeda src/FT_GPU_Hal.cpp --- 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); + }