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

📄 displays.c~

📁 不包含识别算法
💻 C~
字号:
/*********************************************************************
 *
 * Copyright:
 *	MOTOROLA, INC. All Rights Reserved.  
 *  You are hereby granted a copyright license to use, modify, and
 *  distribute the SOFTWARE so long as this entire notice is
 *  retained without alteration in any modified and/or redistributed
 *  versions, and that such modified versions are clearly identified
 *  as such. No licenses are granted by implication, estoppel or
 *  otherwise under any patents or trademarks of Motorola, Inc. This 
 *  software is provided on an "AS IS" basis and without warranty.
 *
 *  To the maximum extent permitted by applicable law, MOTOROLA 
 *  DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED, INCLUDING 
 *  IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
 *  PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH REGARD TO THE 
 *  SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF) AND ANY 
 *  ACCOMPANYING WRITTEN MATERIALS.
 * 
 *  To the maximum extent permitted by applicable law, IN NO EVENT
 *  SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING 
 *  WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS 
 *  INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY
 *  LOSS) ARISING OF THE USE OR INABILITY TO USE THE SOFTWARE.   
 * 
 *  Motorola assumes no responsibility for the maintenance and support
 *  of this software
 ********************************************************************/
 
 
 /*
 * File:	displays.c
 *
 * Purpose:	specific text/graphic routines for the LCD
 *
 *
 * Notes:
 *
 * Modifications:
 *
 */

//#define _DISPLAYS_H
//#define _LCD_H

#include <mcf5249.h>
#include <displays.h>
#include <lcd.h>

/*--- Global Variables ---*/
extern const uint8 DNAlogo[];

/*--- LCD startup display routine ---*/
void LCDStartupDisplay(void)
{
	WriteLCDByte((LCD_INIT_DLINE | 0x00),LCD_CTRL);		//Select RAM line for COM1
	WriteLCDByte((LCD_PAGE | 0),LCD_CTRL);			//Select page to be page 0
	BitmapPrint(DNAlogo, 0, 0);				//Print the bitmap into RAM

	LCDScroll(1);						//Scrolls the LCD display x number of times
	LCDClear();						//Clears the display

	StringPrint("Welcome to the...", 0, 0);			//Print the string into RAM
	StringPrint("ColdFire MCF5249", 0, 2);			//Print the string into RAM
	StringPrint("Security Reference Design", 0, 4);		//Print the string into RAM
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
}

/*--- LCD fingerprint enrollement start display routine ---*/
void LCDEnrollement(void)
{
	LCDClear();						//Clears the display

	StringPrint("Please place your", 0, 0);			//Print the string into RAM
	StringPrint("finger on the sensor", 0, 2);		//Print the string into RAM
	StringPrint("to start enrollment.", 0, 4);		//Print the string into RAM
}

/*--- LCD fingerprint verification start display routine ---*/
void LCDVerification(void)
{
	LCDClear();						//Clears the display

	StringPrint("Please place your", 0, 0);			//Print the string into RAM
	StringPrint("finger on the sensor", 0, 2);		//Print the string into RAM
	StringPrint("to start verification.", 0, 4);		//Print the string into RAM
}

/*--- LCD fingerprint enrollement completed display routine ---*/
void LCDUserEnrolled(void)
{
	BitmapPrint(DNAlogo, 0, 0);				//Print the bitmap into RAM
	LCDScroll(1);						//Scrolls the LCD display x number of times
	LCDClear();						//Clears the display

	StringPrint("Congratulations!", 0, 0);			//Print the string into RAM
	StringPrint("You are now ready for", 0, 2);		//Print the string into RAM
	StringPrint("fingerprint verification.", 0, 4);		//Print the string into RAM

	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);

	LCDClear();						//Clears the display

	StringPrint("Please change the switch ", 0, 0);		//Print the string into RAM
	StringPrint("to verification position", 0, 2);		//Print the string into RAM
	StringPrint("for fingerprint verification.", 0, 4);	//Print the string into RAM

	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
}

/*--- LCD fingerprint verified display routine ---*/
void LCDUserVerified(void)
{
	BitmapPrint(DNAlogo, 0, 0);				//Print the bitmap into RAM
	LCDScroll(1);						//Scrolls the LCD display x number of times
	LCDClear();						//Clears the display

	StringPrint("Congratulations!", 0, 0);			//Print the string into RAM
	StringPrint("Your fingerprint has", 0, 2);		//Print the string into RAM
	StringPrint("been verified.", 0, 4);			//Print the string into RAM

	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
}

/*--- LCD fingerprint rejected display routine ---*/
void LCDUsedRejected(void)
{
	BitmapPrint(DNAlogo, 0, 0);				//Print the bitmap into RAM
	LCDScroll(1);						//Scrolls the LCD display x number of times
	LCDClear();						//Clears the display

	StringPrint("Sorry,", 0, 0);			//Print the string into RAM
	StringPrint("Your fingerprint has", 0, 2);		//Print the string into RAM
	StringPrint("failed verification.", 0, 4);			//Print the string into RAM

	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
	delay(0xffff);
}

⌨️ 快捷键说明

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