新手上路
- 积分
- 28
- 金钱
- 28
- 注册时间
- 2019-8-13
- 在线时间
- 3 小时
|
GUI_x_Touch.c的配置
#include "GUI.h"
#include "GUI_X.h"
#include "touch.h"
void GUI_TOUCH_X_ActivateX(void) {
}
void GUI_TOUCH_X_ActivateY(void) {
}
int GUI_TOUCH_X_MeasureX(void) {
// u16 x,y;
// TP_Read_XY2(&x,&y);
//
tp_dev.scan(0);
return tp_dev.x[0];
}
int GUI_TOUCH_X_MeasureY(void) {
// u16 x,y;
// TP_Read_XY2(&x,&y);
// return y;
tp_dev.scan(0);
return tp_dev.y[0];
}
GUI_Conf.h的配置
#ifndef GUICONF_H
#define GUICONF_H
#define GUI_OS (0) /* Compile with multitasking support */
#define GUI_SUPPORT_TOUCH (1) /* Support a touch screen (req. win-manager) */
#define GUI_SUPPORT_MOUSE (0) /* Support a mouse */
#define GUI_SUPPORT_UNICODE (1) /* Support mixed ASCII/UNICODE strings */
#define GUI_DEFAULT_FONT &GUI_Font6x8
#define GUI_ALLOC_SIZE 15000 /* Size of dynamic memory ... For WM and memory devices*/
#define GUI_WINSUPPORT 1 /* Window manager package available */
#define GUI_SUPPORT_MEMDEV 1 /* Memory devices available */
#define GUI_SUPPORT_AA 1 /* Anti aliasing available */
#define GUI_DEFAULT_BKCOLOR 0xFFFFFF
#define GUI_DEFAULT_COLOR 0x000000
#endif
GUITouchConf.h 的配置
#ifndef GUITOUCH_CONF_H
#define GUITOUCH_CONF_H
#define GUI_TOUCH_AD_LEFT 187
#define GUI_TOUCH_AD_RIGHT 3965
#define GUI_TOUCH_AD_TOP 128
#define GUI_TOUCH_AD_BOTTOM 3950
#define GUI_TOUCH_SWAP_XY 0
#define GUI_TOUCH_MIRROR_X 0
#define GUI_TOUCH_MIRROR_Y 0
#endif /* GUITOUCH_CONF_H */
LCDConf.h 的配置
#define LCD_XSIZE (800)
#define LCD_YSIZE (480)
#define LCD_BITSPERPIXEL (16)
#define LCD_CONTROLLER -1
#define LCD_FIXEDPALETTE (565)
#define LCD_SWAP_RB (1)
#define LCD_SWAP_XY (0)
#define LCD_INIT_CONTROLLER() LCD5510_Init();
|
|