?? lcdconf_7529.h
字號:
/*********************************Copyright(c)**********************************
**********************************千能電力**************************************
**--------------文件信息---------------------------------------------------
**文 件 名: lcdconf_7529.h
**創 建 人: 楊林軍
**創 建 日 期: 2008-4-1
**最 新 版 本: $Id: LCDConf_7529.h,v 1.1.1.2 2008/04/28 06:16:30 yanglinjun Exp $
**描 述:
**--------------歷史版本信息-----------------------------------------------
** 修改人: 楊林軍
** 日 期:
** 版 本:
** 描 述:
**-------------------------------------------------------------------------
*******************************************************************************/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LCDCONF_7529_H_
#define __LCDCONF_7529_H_
/* Includes ------------------------------------------------------------------*/
#include "stdio.h"
#include "string.h"
#include "math.h"
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
#define ExtModeOff 0x30
#define ExtModeOn 0x31
#define DispOn 0xaf
#define DispOff 0xae
#define DispNor 0xa6
#define DispInv 0xa7
#define ComScan 0xbb
#define DispCtrl 0xca
#define SleepIn 0x95
#define SleepOut 0x94
#define LineAddSet 0x75
#define ColumnAddSet 0x15
#define DataScanDir 0xbc
#define MemWrite 0x5c
#define MemRead 0x5d
#define PartialIn 0xa8
#define PartialOut 0xa9
#define ReadModifyWriteOn 0xe0
#define ReadModifyWriteOff 0xee
#define AreaScrollSet 0xaa
#define ScrollStartAddSet 0xab
#define InternalOscOn 0xd1
#define InternalOscOff 0xd2
#define PowerCtrlSet 0x20
#define VolumnCtrl 0x81
#define IncVolumn 0xd6
#define DecVolumn 0xd7
#define ReadReg1 0x7c
#define ReadReg2 0x7d
#define NoOperation 0x25
#define ExitTestMode 0x25
//#define StatusRead
#define InitialCode 0x07
#define SetGray1 0x20
#define SetGray2 0x21
#define AnalogCircuitSet 0x32
#define SoftInit 0x34
#define EepromEn 0xcd
#define EepromDis 0xcc
#define EepromWrite 0xfc
#define EepromRead 0xfd
#define ExtIn 0x30
#define ExtOut 0x31
//Ext=0
#define DISON 0xAF
#define DISOFF 0xAE
#define DISNOR 0xA6
#define DISINV 0xA7
#define COMSCN 0xBB
#define DISCTRL 0xCA
#define SLPIN 0x95
#define SLPOUT 0x94
#define LASET 0x75
#define CASET 0x15
#define DATSDR 0xBC
#define RAMWR 0x5C
#define RAMRD 0x5D
#define PTLIN 0xA8
#define PTLOUT 0xA9
#define RMWIN 0xE0
#define RMWOUT 0xEE
#define ASCSET 0xAA
#define SCSTART 0xAB
#define OSCON 0xD1
#define OSCOFF 0xD2
#define PWRCTRL 0x20
#define VOLCTRL 0x81
#define VOLUP 0xD6
#define VOLDOWN 0xD7
#define RESERVED 0x82
#define EPSRRD1 0x7C
#define EPSRRD2 0x7D
#define NOP 0x25
#define EPINT 0x07
//Ext=1
#define Gray1Set 0x20
#define Gray2Set 0x21
#define ANASET 0x32
#define SWINT 0x34
#define EPCTIN 0xCD
#define EPCOUT 0xCC
#define EPMWR 0xFC
#define EPMRD 0xFD
#define LCDX 160
#define LCDY 160
/* Exported variables --------------------------------------------------------*/
extern char xbyte[LCDY][LCDX/8];
/* Exported functions ------------------------------------------------------- */
//*************************************************************
// ****以下是公共函數****
//*************************************************************
void LCD_INIT_CONTROLLER(void); //液晶初始化函數
void SetWindow(short x, short y, short x1, short y1); //設置液晶刷新范圍函數
void LCD_ClearScreen(void);//清屏函數
//*************************************************************
// ****以下是根據內存內容區域刷新函數****
//*************************************************************
void SetPix(short x, short y);//數組寫點
void ClrPix(short x, short y);//數組清點
void Up_Pix(const short x,const short y);//根據數組內容刷新給定位置的點
void Up_HLine(const char x1,const char y1,const char w);//區域刷新行
void UpAreaLcd(const short x, const short y, const short x1, const short y1);//根據數組內容刷新(x,y)與(x1,y1)區域內的內容
void Up_Lcd(void);//根據數組內容整屏刷新,刷新速度快
//*************************************************************
// ****以下是液晶物理操作函數****
//*************************************************************
void LCD_SetPix(int x,int y);//物理寫點
void LCD_ClrPix(int x,int y);//物理清點
void LCD_HLine(char x1,char y1,char w);//物理畫橫線
void LCD_VLine(int x1,int y1,int y2);//物理畫豎線
//*************************************************************
// ****以下是內存繪圖函數****
//*************************************************************
void DrawHPixLine(short x1,short y,short x2);//數組操作畫橫線
void DrawVPixLine(short x,short y1,short y2);//數組操作畫豎線
void DrawRect(short x0, short y0, short x1, short y1);//數組操作畫矩形
void DrawRectFill(short x0, short y0, short x1, short y1);//數組操作填充矩形
int FindHz(char *hz);//尋找字庫
void PrintHZ(char *hz, short x,short y);//寫漢字
void PrintASC(char ascii, short x, short y);//寫ASC碼
void PrintStr(short x, short y,char *str);//寫文字數組
#endif
/******************* (C) COPYRIGHT 千能電力 *****END OF FILE*******************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -