t6963c.h

来自「英创386的LCD控制协议和函数,还有例程」· C头文件 代码 · 共 40 行

H
40
字号
#if !defined( _T6963C_H )
#define _T6963C_H
/*//////////////////////////////////////////////////////////////////////////
Orgnization:	Emtronix Incorporated
Filename:	T6963C.H
Compiler:	BC3.1
Authors:	CS & ZHL
Date:		October, 2002
Revised:	...
Description:	header file for LCD module based on T6963C
///////////////////////////////////////////////////////////////////////////*/

// return =  0: init ok
//        = -1: init fail
int InitLCD( );

// return =  0: init ok
//        = -1: LCD fail
int ClearScreen( );

// input col = 0 -- 29 => column
//       row = 0 -- 127
int WriteByte( int col, int row, unsigned char aByte );

// input col = 0 -- 29 => column
//       row = 0 -- 127
// return = 0x0000 -- 0x00ff: ok
//        = 0xffff (-1):      fail
int ReadByte( int col, int row );

// input: DotColor = 0:    write 0;
//                 = 1:    write 1;
//                 = 0x81: XOR write
// input x = 0 -- 239
//       y = 0 -- 127
// return =  0: ok
//        = -1: LCD fail
int WritePixel( int x, int y, int DotColor );

#endif

⌨️ 快捷键说明

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