sochen1987 发表于 2013-8-27 09:17:13

Guide - how transplant the uCGUI

一直对UC/GUI有兴趣,苦于没有机缘就没有去研究下它,这几天趁着公司有硬件基础及项目,简单移植了下,网上的一些移植文档对我还是比较有帮助但也有些比较凌乱,因此也写了篇简单的移植文档.
/*
* Brief:
* Guide -how transplant the uCGUI
* Author: sochen
* Date:18:39 2013-08
*
* +1.Create a programming project
* +2.Write drivers
*+Display device such as tft,lcd
*   +Initialization - fun1
*   +Set pixel at x and y - fun2
*   +Get pixel at x and y - fun3
*+Touchpad,if necessary
*   +I did not do it
* +3.Import the files of uCGUI
*   +AntiAlias
*   +ConvertColor
*   +ConvertMono
*   +Core
*   +Font
*   +JPEG
*   +MemDev
*   +MultiLayer
*   +Widget
*   +WM
*   +LCDDriver
*   +Config
*+4.Configuration
*   +Choose one of the following file adapter your hardware
*    +LCDWin,LCDNull or LCDDummy at LCDDriver
*   +I chose LCDDummy
*      +Interface adapter
*       +fun2 -> LCD_L0_SetPixelIndex at LCDDummy.c
*       +fun3 -> LCD_L0_GetPixelIndex at LCDDummy.c
*       +fun4 -> LCD_INIT_CONTROLLER() at LCDConf.h
*    +GUI_X dependent on the system clock
*   +I ignored it
*   +Configure Macro
*   +My configuration at GUIConf.h
*      +GUI_OS            (0)
*      +GUI_SUPPORT_TOUCH   (0)
*      +GUI_SUPPORT_UNICODE (1)
*      +GUI_DEFAULT_FONT    (&GUI_Font6x8)
*      +GUI_ALLOC_SIZE      (5000)
*      +GUI_WINSUPPORT      (1)
*      +GUI_SUPPORT_MEMDEV(1)
*      +GUI_SUPPORT_AA      (1)
*   +My configuration at LCDConf.h
*    +LCD_XSIZE      (320)
*    +LCD_YSIZE      (240)
*    +LCD_CONTROLLER   (-1)
*    +LCD_BITSPERPIXEL (16)
*    +LCD_FIXEDPALETTE (565)
*    +LCD_SWAP_RB      (1)
*    +LCD_SWAP_XY      (1)
*/

Gorgon_Meducer 发表于 2013-8-27 10:04:50

非常感谢~
页: [1]
查看完整版本: Guide - how transplant the uCGUI