|
一直对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)
*/
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
阿莫论坛20周年了!感谢大家的支持与爱护!!
知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)
|