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

📄 lcd.h

📁 e1c0df5d-c8bc-48a5-bc02-a2b7c51c0dbf是做mp3的源代码
💻 H
字号:
/* ***********************************************************************
**
**  Copyright (C) 2002  Jesper Hansen <jesperh@telia.com> and 
**			Romuald Bialy (MIS) <romek_b@o2.pl>.
**
**
**  Yampp-7/USB - low level support library
**
**
*************************************************************************
**
**   This file is part of the yampp system.
**
**  This program is free software; you can redistribute it and/or
**  modify it under the terms of the GNU General Public License
**  as published by the Free Software Foundation; either version 2
**  of the License, or (at your option) any later version.
**
**  This program is distributed in the hope that it will be useful,
**  but WITHOUT ANY WARRANTY; without even the implied warranty of
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**  GNU General Public License for more details.
**
**  You should have received a copy of the GNU General Public License
**  along with this program; if not, write to the Free Software Foundation, 
**  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
**
*************************************************************************
**
**  Revision History
**
**  when         what  who	why
**
**  2002-09-22   1.0   MIS      initial public release
**
*********************************************************************** */

#ifndef LCD_H
#define LCD_H


#define LCD_ON	1
#define EEPROM_LANGTAB		0x010   // 20 bytes
#define EEPROM_LANGCHARS	0x028	// 20*6 = 120 bytes
#define EEPROM_LOGO		0x0AE	// 4*84 + 2 bytes


#ifndef LCD_ASM

 void lcd_init(unsigned char mode);		// LCD initialise
 unsigned char lcd_logo(unsigned char line);			// Display Graphicall logo screen
 void lcd_off(void);			// LCD power down
 void lcd_invert(void);			// Set characters invert mode
 void lcd_normal(void);			// Set characters normal mode
 void lcd_contrast(unsigned char contr);		// Set LCD contrast (0x00 - 0x7F)
 void lcd_bar(unsigned char val, unsigned char len);	// Display progressbar on LCD
 void lcd_data(unsigned char data);		// Display ASCII char without offset
 void lcd_data_o(unsigned char data, unsigned char offset);	// Display ASCII char (with offset to chargen)
 void lcd_wrdata(unsigned char data);		// Send one data byte to LCD.


/* prototypes */
void lcd_gotoxy(unsigned char x, unsigned char y);
void lcd_clrscr(void);
void lcd_home(void);
void lcd_putchar(unsigned char data);
void lcd_puts(char s[]);
void lcd_progputs(char s[]);

#endif

#endif // ifndef LCD_H

⌨️ 快捷键说明

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