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

📄 lpc_lib_lcd.h

📁 使用embest IDE开发工具开发的基于LPC2294 的触摸屏开发
💻 H
字号:
/*
**********************************************************************************************
*
*     		  Embest Info&Tech Co., Ltd.  All rights reserved.
*                   		  www.embedinfo.com
*			
*file:     		xxx.c/xxx.h 
*author:   		embest 
*establish: 	2006.xx.xx
*modify:		xx
*notes:			xx
**********************************************************************************************
*/
/*
**********************************************************************************************
*                                      compiler condition 
**********************************************************************************************
*/
#ifndef lpc_lib_LCD
	#define lpc_lib_LCD
/*
**********************************************************************************************
*                                       include files
**********************************************************************************************
*/
#include	"..\..\com\type_redefine.h"
#include	"..\..\com\lpc22xx_register.h"
#include 	"..\..\com\lpc_lib_pll\lpc_lib_pll.h"
#include 	"..\..\com\lpc_lib_spi\lpc_lib_spi.h"
#include	"..\..\com\22eb06_lib_modulecontrol\22eb06_lib_modulecontrol.h"

#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
/*
**********************************************************************************************
*                                   constant define 
**********************************************************************************************
*/
#define 	ADDR_COM 		(*((volatile unsigned short *)0x82060000))
#define 	ADDR_DATA 		(*((volatile unsigned short *)0x82060002))


#define 	X_SPACE0		8
#define 	X_SPACE1		8
#define 	Y_SPACE0		8
#define 	Y_SPACE1		10

/*
**********************************************************************************************
*                               extern function/variable declare
**********************************************************************************************
*/
extern const INT8U ascii8x16[];

/*
**********************************************************************************************
*                                   function declare  
**********************************************************************************************
*/

void LCD_Yaddr(INT8U starty,INT8U endy);
void LCD_Xaddr(INT8U startx,INT8U endx);
void Delayms(INT32U value);
void LCD_reset(void);
void LCD_BL_con(INT8U onoff);
void LCD_wrdata(INT16U data);
void LCD_wrcom(INT16U comd);
void LCD_init(void);


void LCD_sendch(INT8U data);
void LCD_sendstr(INT8U *str);
void LCD_printf(INT8U *fmt,...) ;
void cls(void);
void posi_set(INT8U lineth,INT8U charth);
void color_set(INT16U fcolor,INT16U bcolor);
void clear_line(INT8U line_num);


#endif










⌨️ 快捷键说明

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