第三个要修改的地方
static void * _GetDevData(GUI_DEVICE * pDevice, int Index) { GUI_USE_PARA(pDevice);
#if GUI_SUPPORT_MEMDEV switch (Index) {
case LCD_DEVDATA_MEMDEV:
/* 这个一定记得要改,不改就悲剧了,根据自己屏的位数改,现在用的是双色屏,改成1就好了 */
return (void *)&GUI_MEMDEV_DEVICE_1; // TBD: Has to be adapted to the right memory device depending on the used color depth! }
#else GUI_USE_PARA(Index);
#endif return NULL;
}
/*
****************************************************************************
*
* LCD_X_Config
*
* Purpose:
* Called during the initialization process in order to set up the
* display driver configuration.
*
****************************************************************************
*/
void LCD_X_Config(void)
{
/* Set display driver and color conversion for 1st layer */
GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER, COLOR_CONVERSION, 0, 0);
/* Display driver configuration */
LCD_SetSizeEx (0, 128, 64);
LCD_SetVSizeEx (0, 128, 64);
}