初级会员
- 积分
- 170
- 金钱
- 170
- 注册时间
- 2013-10-27
- 在线时间
- 12 小时
|
发表于 2014-7-21 16:31:30
|
显示全部楼层
鼠标阴影是下面的原因: (LCD9341屏)
void LCD_X_Config(void) {
GUI_DEVICE * pDevice;
CONFIG_FLEXCOLOR Config = {0};
GUI_PORT_API ortAPI = {0};
//
// Set display driver and color conversion
//
pDevice = GUI_DEVICE_CreateAndLink(GUIDRV_FLEXCOLOR, GUICC_565, 0, 0);
//
// Display driver configuration, required for Lin-driver
//
LCD_SetSizeEx (0, XSIZE_PHYS , YSIZE_PHYS);
LCD_SetVSizeEx(0, VXSIZE_PHYS, VYSIZE_PHYS);
//
// Orientation
//
// Config.FirstCOM = 0;//modify by fire
// Config.FirstSEG = 0;//modify by fire
// Config.Orientation = GUI_SWAP_XY | GUI_MIRROR_Y;
// Config.Orientation = GUI_SWAP_XY;
Config.NumDummyReads = 2;//modify by fire ?????????????????§??
GUIDRV_FlexColor_Config(pDevice, &Config);
//
// Set controller and operation mode
//
 ortAPI.pfWrite16_A0 = LcdWriteReg;
 ortAPI.pfWrite16_A1 = LcdWriteData;
 ortAPI.pfWriteM16_A1 = LcdWriteDataMultiple;
 ortAPI.pfReadM16_A1 = LcdReadDataMultiple;
GUIDRV_FlexColor_SetFunc(pDevice,&ortAPI,GUIDRV_FLEXCOLOR_F66709,GUIDRV_FLEXCOLOR_M16C0B16);
//GUIDRV_FlexColor_SetFunc(pDevice,&ortAPI,GUIDRV_FLEXCOLOR_F66708,GUIDRV_FLEXCOLOR_M16C0B16);
/* modify by fire ?è?????????? */
GUI_TOUCH_SetOrientation((GUI_MIRROR_X * LCD_GetMirrorXEx(0)) |
(GUI_MIRROR_Y * LCD_GetMirrorYEx(0)) |
(GUI_SWAP_XY * LCD_GetSwapXYEx (0)));
/* modify by fire ?è????????×? */
GUI_TOUCH_Calibrate(GUI_COORD_X, 0, XSIZE_PHYS-1, GUI_TOUCH_AD_LEFT, GUI_TOUCH_AD_RIGHT);
GUI_TOUCH_Calibrate(GUI_COORD_Y, 0, YSIZE_PHYS-1, GUI_TOUCH_AD_TOP, GUI_TOUCH_AD_BOTTOM);
}
向上面程序一样就行了 |
|