lcd_api.h
来自「基于ucos的网络液晶开发程序」· C头文件 代码 · 共 33 行
H
33 行
/*//////////////////////////////////////////////////////////////////////////
Orgnization: Emtronix Incorporated
Filename: LCD_API.H
Compiler: BC3.1
Authors: Wang Ping
Date: April, 2002
Revised: ...
Description: defintions of API functions for LCD module
///////////////////////////////////////////////////////////////////////////*/
#if !defined(_LCD_API_H)
#define _LCD_API_H
// return = 0: ok!
// = -1: fail
int LCD_Init( char* CHN_FntFile, char* ASCII_FntFile );
int LCD_Clearup( );
// Mode = 0: copy write for dot, line, bar
// = 1: xor write for dot, line, bar
int LCD_SetMode( int Mode );
// x0, x1 = 0 -- 127; y0, y1 = 0 -- 63;
// color = 0, 1
int LCD_PutPixel( int x0, int y0, int color );
int LCD_DrawLine( int x0, int y0, int x1, int y1, int color );
int LCD_FillBar( int x0, int y0, int x1, int y1, int color );
// x0 = 0 -- 127; y0 = 0 -- 63;
// color = 0, 1
int LCD_WriteString( int x0, int y0, char* pStr, int color, int len );
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?