On the basis of the peripheral piece 1 inside the liquid crystal panel is lit (17) on the migration of the liquid crystal panel
1 download GUI unzip into the root directory of the project under
Picture 1
2 GUI inside the folder to add all project files inside.
Picture 2
3 GUI files inside each folder inside added to the project.
Add Config 1 in time, because there are Config header files you need to select the file type Allfile then select all files added.
2 font to not add, after compile time needed to add the font in the font.
3 Add the operating system without delay function file GUI_X.c
4 Add a picture file when JPGE folder there are two folders below and DOC Image not need to add, just add the following JPGE point C file.
5 LCD driver files LCDDriver following files to not add, because we are using LCD driver UC_COS does not support, we need to rewrite their own.
6 Now let's not add touch.
7 UC_GUI can be cut, we can get rid of such useless on the Widget control.
Project images after the addition was complete 8
4 the first document path is provided, after setting as FIG.
5 configuration UC_GUI mainly in the Config file inside
1 GUIConf.h Set
#define GUI_OS (0) /* ÉèÖÃΪ²»´ø²Ù×÷ϵͳCompile with multitasking support */
#define GUI_SUPPORT_TOUCH (0) /* ´¥ÃþÏȲ»Ö§³ÖSupport a touch screen (req. win-manager) */
#define GUI_SUPPORT_MOUSE (0) /* °´Å¥Support a mouse */
#define GUI_SUPPORT_UNICODE (0) /* ×Ö·ûÒ²ÏȹرÕSupport mixed ASCII/UNICODE strings */
全部关闭的目的是把系统最小化,一步一步来移植。
#define GUI_DEFAULT_FONT &GUI_Font6x8 //UC_GUI默认一个字体现在我们把这个字体加上。
#define GUI_ALLOC_SIZE 12500 /*动态内存管理 Size of dynamic memory ... For WM and memory devices*/
#define GUI_WINSUPPORT 1 /* 视窗管理先保留Window manager package available */
#define GUI_WINSUPPORT 1 /* 视窗管理Window manager package available */
#define GUI_SUPPORT_MEMDEV 0 /* 内存管理Memory devices available */
#define GUI_SUPPORT_AA 0 /* 抗锯齿Anti aliasing available */
LCDConf.c文件修改
#define LCD_XSIZE (240) /*设置触摸屏尺寸x轴 X-resolution of LCD, Logical coor. */
#define LCD_YSIZE (320) /* 设置触摸屏尺寸Y轴 Y-resolution of LCD, Logical coor. */
这里表示2.4寸和3.2寸触摸屏大小的设置方式刚好就是240和320
#define LCD_BITSPERPIXEL (16) //像素是16
#define LCD_CONTROLLER 9325 //驱动
20分钟15秒