📄 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 + -