lcdchar.h

来自「三星2410的一些DEMO小例程」· C头文件 代码 · 共 44 行

H
44
字号
/*
 *************************************************************************
 * Copyright (c) 2003, The Lab of Embedded System and Net Security,WHUT..
 * All rights reserved. 
 *
 * Filename:    lcdchar.h
 * Discription: This file deals with lcd text output
 * 
 * version:            1.0
 * Author:             Qiu Yanfei <qyfhm@tom.com>
 * Accomplished Date:  2004/7/28 19:55:00
 *************************************************************************
*/
#ifndef  __LCDCHAR_H__
#define  __LCDCHAR_H__ 

#include    "def.h"
#define BLACK 	0x0000
#define WHITE 	0xffff
#define RED 	0x0f800
#define GREEN 	0x7e0
#define BLUE 	0x1f
#define YELLOW 0x0ff00
//the height of a char
#define CHAR_HEIGHT  		16
//the width of a char 
#define CHAR_WIDTH  		8
// the width of a chinese 
#define CHINESE_WIDTH		16
 
void LCD_SetOutWindow(S32 x0, S32 y0, S32 x1, S32 y1, U16 bkColor, U16 frntColor); 
void LCD_Printf(char *fmt,...);
void LCD_SendString(char *pt);

void setcolor(U16 color);
U8 getcolor(void);
U8 getbkcolor(void);
void gotoxy(unsigned int x,unsigned int y);
void setbkcolor( U16 color);

#endif


⌨️ 快捷键说明

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