⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _lcd.h

📁 at91rm9200 mac control源码
💻 H
字号:

/****************************************************************
 *                                                              *
 *  Program : _LCD.H                                            *
 *                                                              *
 *  Purpose : Header of LCD.C                                   *
 *                                                              *
 *  Compile : SH SERIES C Compiler Ver. 4.1                     *
 *                                                              *
 *  Version : 1.00                                              *
 *                                                              *
 *  Create  : 2002-09-01 Sunday              By KWM             *
 *                                                              *
 *  Copyright (C) 2002  Amnokgang Technology Development Corp.  *
 *  All Rights Reserved.                                        *
 *                                                              *
 ****************************************************************/

/*--- Graphics LCD's size ---*/
#define LCD_WIDTH		128					/* Dot width of graphics LCD  */
#define LCD_HEIGHT		64					/* Dot height of graphics LCD */

/*--- Graphics LCD(IEM128064A/GTG-12864K/WGM-12864B ) Control ---*/
#define LCD_Disp( OnOff )		(0x03E | OnOff)		/* 1=Display ON  0=OFF   */
#define LCD_StartLine( Line )	(0x0C0 | Line)		/* Line=0-63   */
#define LCD_Page( Page )		(0x0B8 | Page)		/* Page=0-8    */
#define LCD_Column( Column )	(0x040 | Column)	/* Column=0-63 */
#define LCD_Busy( Status )		(0x080 & Status)	/* 0x80=busy 0=ready   */
#define LCD_ResetS( Status )	(0x010 & Status)	/* 0x10=reset 0=normal   */
#define LCD_ADC( ADC )			(0x0A0 | ADC)		/* 0=rightward, 1=leftward    */
#define LCD_Static( OnOff )		(0x0A4 | OnOff)		/* 0=Dynamic 1=Static driving   */
#define LCD_Duty( Duty )		(0x0A8 | Duty)		/* 0=1/16duty 1=1/32duty   */
#define LCD_ReadModifyWrite		(0x0E0)				/* Read Modify Write Start  */
#define LCD_ReadModifyWriteEnd	(0x0EE)				/* Read Modify Write End  */
#define LCD_Reset				(0x0E2)				/* Soft reset  */

#define LCDL_1			0
#define LCDL_2			1
#define LCDL_3			2
#define LCDL_4			3
#define LCDL_5			4
#define LCDL_6			5
#define LCDL_7			6
#define LCDL_8			7

#define LINE41		LCDL_1			
#define LINE42		LCDL_3			
#define LINE43		LCDL_5			
#define LINE44		LCDL_7			

#define LINE31		LCDL_1			
#define LINE32		LCDL_5			
#define LINE33		LCDL_7			

/*--- Pattern881 ---*/
#define CHAR_WIDTH		6
#define CHAR_HEIGHT		8
#define N_CHAR			(LCD_WIDTH/CHAR_WIDTH)
#define N_LINE			(LCD_HEIGHT/CHAR_HEIGHT)

/*--- Pattern8162 ---*/
#define CHAR_W_816		8
#define CHAR_H_816		16
#define N_CHAR_816		(LCD_WIDTH/CHAR_W_816)
#define N_LINE_816		(LCD_HEIGHT/CHAR_H_816)

/*--- Pattern16161 ---*/
#define CHAR_W_1616		12
#define CHAR_H_1616		16
#define N_CHAR_1616		(LCD_WIDTH/CHAR_W_1616)
#define N_LINE_1616		(LCD_HEIGHT/CHAR_H_1616)

/*--- Pattern16321 ---*/
#define CHAR_W_1632		16
#define CHAR_H_1632		32
#define N_CHAR_1632		(LCD_WIDTH/CHAR_W_1632)
#define N_LINE_1632		(LCD_HEIGHT/CHAR_H_1632)

/* A number of character per line */
#define LINECHAR_881	N_CHAR			/* =20 */		/* 8(w)*8(h)*1(d) */
#define LINECHAR_8162	N_CHAR_816		/* =15 */		/* 8(w)*16(h)*2(d) */
#define LINECHAR_16161	N_CHAR_1616		/* =10 */		/* 16(w)*16(h)*1(d) */
#define LINECHAR_16321	N_CHAR_1632		/* =7/8 */		/* 16(w)*16(h)*1(d) */

/* Pattern size (byte)*/
#define PATTSIZE_881	8		/* 8(w)*8(h)*1(d) */
#define PATTSIZE_882	8		/* 8(w)*8(h)*2(d) */
#define PATTSIZE_8162	16		/* 8(w)*16(h)*2(d) */
#define PATTSIZE_16161	32		/* 16(w)*16(h)*1(d) */
#define PATTSIZE_16321	64		/* 16(w)*16(h)*1(d) */

void LCD_Delay( void );
void InitializeLCD( void );
void AllClearLCD( void );
void LineClearLCD( BYTE aLine );
void EdgeClearSlave( int aLine, int aCharWidth, int aCharHeight );
void EdgeClearMaster( int aLine, int aCharWidth, int aCharHeight );
void PrintChar881( char aChar, int aLine, int aPos, int aInv );
void PrintChar8162( char aChar, int aLine, int aPos, int aInv );
void PrintChar16161( char aChar, int aLine, int aPos, int aInv );
void PrintChar16321( char aChar, int aLine, int aPos, int aInv );
void PrintPicture12864( char *aLCDdata1288 );

/****************************************************************
 *
 *                End of file : _LCD.H
 *
 ****************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -