interface.h

来自「单工无线呼叫系统的全部源代码 AD9858」· C头文件 代码 · 共 30 行

H
30
字号
/***************************************************************************************************
	file			:	Interface.h
	author			:	Group23.EEICST.HUST
	finish			:	2005-08-15 10:43
	related files	:	Interface.c
----------------------------------------------------------------------------------------------------
	the basic API for SPCE061 with LCD(FM12864) and KeyBoard
	used 8 IOs for control,and they are exclusive
	used 8 IOs for Data,and they can be shared
	used IRQ6_TMB1
Attention:
	At the very begining of your programe fire the "Interface_Init" before
***************************************************************************************************/

#ifndef __Interface_h__
#define __Interface_h__

void Interface_Init();
void LCD_Init();
void LCD_CLS(unsigned char Color);
void LCD_StartRow(int x);
void LCD_Pixel(int x,int y,unsigned char Color);
void LCD_Line(int x0,int y0,int x1,int y1,unsigned char Color);
void LCD_Bar(int x0,int y0,int x1,int y1,unsigned char LineColor,unsigned char FillColor);
void LCD_Box(int x0,int y0,int x1,int y1,unsigned char Color);
int LCD_DrawText(char *str,int x,int y,char ForeColor,char BackColor);	//Color:0-white,1-black,2-reverse,3-lucency
void LCD_Reverse(int x0,int y0,int x1,int y1);

#endif

⌨️ 快捷键说明

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