?? lcm128645zk.h
字號:
/** Descriptions: The head files
**
**------------------------------------------------------------------------------------------------------
** Created by: hanxiaoguang
** Created date: 2008-05-11
** Version: 1.0
** Descriptions: The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#include "config.h"
#include"lpc2294.h"
#ifndef _LCM128645ZK_h
#define _LCM128645ZK_h
#define Tcolor uint8
#define GUI_LCM_YMAX 64
#define GUI_LCM_XMAX 128
//I/O接口定義
#define LCM128645ZK_RS 1<<16 // 數據指令選擇信號
#define LCM128645ZK_RW 1<<17 // 讀寫選擇信號
#define LCM128645ZK_EN 1<<18 // 使能信號
#define LCM128645ZK_DATA 0xff<<4// 數據信號
#define Set_LCM128645ZK_input() IO0DIR=(IO0DIR&0xfffff00f)|(0x00<<4);
#define Set_LCM128645ZK_output() IO0DIR=(IO0DIR&0xfffff00f)|(0xff<<4);
#define Set_LCM128645ZK_RS() {IO0SET |= LCM128645ZK_RS;LCM128645ZK_Shortdelay(50);}
#define Set_LCM128645ZK_RW() {IO0SET |= LCM128645ZK_RW;LCM128645ZK_Shortdelay(50);}
#define Set_LCM128645ZK_EN() {IO0SET |= LCM128645ZK_EN;LCM128645ZK_Shortdelay(50);}
#define Clr_LCM128645ZK_RS() { IO0CLR |= LCM128645ZK_RS;LCM128645ZK_Shortdelay(50);}
#define Clr_LCM128645ZK_RW() { IO0CLR |= LCM128645ZK_RW;LCM128645ZK_Shortdelay(50);}
#define Clr_LCM128645ZK_EN() {IO0CLR |= LCM128645ZK_EN;LCM128645ZK_Shortdelay(50);}
#define LCM128645ZK_CLEAR() LCM128645ZK_cmd(0x01)//清屏
#define LCM128645ZK_HOME() LCM128645ZK_cmd(0x02)//地址歸零
#define LCM128645ZK_ENTRY_SET_RIGHT() LCM128645ZK_cmd(0x06)//游標移動方向右
#define LCM128645ZK_ENTRY_SET_LEFT() LCM128645ZK_cmd(0x04)//游標移動方向向左
extern void LCM128645ZK_cmd(uint8 CMD);
extern void LCM128645ZK_data(uint8 DAT);
extern void LCM128645ZK_INIT(void);
extern void LCM128645ZK_Test(void);
extern uint32 CheckBusy(void);
extern void Set_Draw(void);
extern void Char_Set_XY(uint8 x, uint8 y, uint8 *p);
extern void Draw_Pic(uint8 x, uint8 y, const uint8 *Draw);
extern void LCM128645ZK_Shortdelay(uint32 i);
extern void LCM128645ZK_Draw_clear(void);
extern void GUI_Point(uint8 x, uint8 y,Tcolor color);
extern void GUI_HLine(uint8 x0, uint8 y0, uint8 x1,Tcolor color);
extern void GUI_RLine(uint8 x0, uint8 y0, uint8 y1,Tcolor color);
extern void GUI_Rectangle(uint8 x0, uint8 y0, uint8 x1, uint8 y1,Tcolor color);
extern void GUI_RectangleFill(uint8 x0, uint8 y0, uint8 x1, uint8 y1, Tcolor color);
extern void Game_face(void);
extern void Disp_Numbers (void);
extern void Game_HTest(void);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -