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

📄 demo.h

📁 MSC-51驱动SYB240128AZK
💻 H
字号:
/*******************************************************************************
*                                                                            
*	Filename:	Demo.h
* 
*  	Author:		Duke Chang
*	Company:    	RAiO Technology Inc.
*	Case:		240x128 
*	Device:		MXIC MX10E8050IQC at 18.432MHz
*   	Date:       	2005/10/12
*	Modifier:	Duke Chang
*	Modify Date:    2005/10/12
*   	Visions:   	1.0
*   	Compiled Using Keil C v7.50
*	
*******************************************************************************/

#include <stdio.h>
#include <intrins.h>
#include "MX10E8051I.h"
#include "RA8822Reg.h"
#include "UserDef.h"

//------------------------------------------------------------------------------
//Complier Defines
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//Parameter Defines
//------------------------------------------------------------------------------
//===== LCD Panel Size =====
#ifdef P240x128
#define cXSize		30
#define cYSize		128
#endif

//------------------------------------------------------------------------------
//Subroutine Declare
//------------------------------------------------------------------------------
void Test_Pattern(void);
void Test_Font(void);
void Test_Touch(void);

//RA8822 LCD Controller Function
extern void LCD_Reset(void);
extern void LCD_Initial(void);
extern void LCD_ON(void);
extern void LCD_OFF(void);
extern void LCD_GotoXY(uchar, uchar);
extern void LCD_Graphic(void);
extern void LCD_Text(void);
extern void LCD_CmdWrite(uchar, uchar);
extern uchar LCD_CmdRead(uchar);
extern void LCD_DataWrite(uchar);
extern uchar LCD_DataRead(void);
extern void LCD_Bold(void);
extern void LCD_NoBold(void);
extern void LCD_Inv(void);
extern void LCD_NoInv(void);
extern void LCD_GInv(void);
extern void LCD_NoGInv(void);
extern void LCD_Blk(void);
extern void LCD_NoBlk(void);
extern void LCD_BlkTim(uchar);
extern void LCD_Cur(void);
extern void LCD_NoCur(void);
extern void LCD_CurBlk(void);
extern void LCD_NoCurBlk(void);
extern void LCD_CurHei(uchar);
extern void LCD_LineDis(uchar buf);
extern void LCD_SWRst(void);
extern void LCD_Clear(void);
extern void LCD_AlignOn(void);
extern void LCD_AlignOff(void);
extern void LCD_FontSize(uchar buf);
extern uchar ADC_Touch(void);
extern void ADC_On(void);
extern void ADC_Off(void);
extern uchar ADC_Y(void);
extern uchar ADC_X(void);
extern void Print_Hex(uchar buf);

extern void LCD_PrintStrD100ms(uchar *ptr, uchar x, uchar time);
extern void LCD_PrintStr(uchar *ptr, uchar x);

//Delay Function
extern void Delay2us(uchar);
extern void Delay100us(uchar);
extern void Delay1ms(uchar);
extern void Delay10ms(uchar);
extern void Delay100ms(uchar);
//------------------------------------------------------------------------------
//Const Declare
//------------------------------------------------------------------------------
uchar code sRAiO0[] = "                              ";

#ifdef BIG5_Code
uchar code sRAiO1[] = "   い ゅ 陪 ボ / 酶 瓜 陪 ボ  ";
#endif

#ifdef GB_Code
uchar code sRAiO1[] = "   中 文 显 示 / 绘 图 显 示  ";
#endif

uchar code sRAiO2[] = " ^^^^^^^^ RA8822-S/T ^^^^^^^^ ";

#ifdef Parallel_8080
uchar code sRAiO3[] = "  Parallel 8080 I/F, 240x128  ";
#endif

#ifdef Parallel_6800
uchar code sRAiO3[] = "  Parallel 6800 I/F, 240x128  ";
#endif

#ifdef BIG5_Code
uchar code sRAiO4[] = "     风

⌨️ 快捷键说明

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