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

📄 rfid_pcmenu.c

📁 找的一个用U2270B开发的射频卡项目文件
💻 C
字号:
// $Id: rfid_PCMenu.c,v 1.3 2006/10/12 14:00:54 tprescott Exp $
/*************************************************************
Project : rfid_PCMenu.h
Date    : 9/08/2006
Author  : Toby Prescott                   
Company : Atmel                           
Comments: AVR Studio GCC

Revisions:
	v1.0 - Started written for CodeVision 
	v2.6 - Clean for WinAVR
*************************************************************/

#include "rfid_PCMenu.h" 

// Declare your global variables here
        

// *******************************************************************************
// Menu lists PC Interface options available
// ******************************************************************************/
void pcMenu_Display(void)
{
  	unsigned char currentPos=0, nextPos=0;

    upDate = 0;

    uio_Release();
    while(cButton != IO_F1 && cButton != IO_F2 && cButton != IO_F3 && cButton != IO_F4)
    {                   
		// Menu Display 
        if(currentPos != nextPos || upDate == 0)
		{
			currentPos = nextPos;
			lcd_clear_area(SCRN_LEFT+1,13-1,SCRN_RIGHT-1,SCRN_BOTTOM-1);
		 	lcd_put_fString(4, 13, PSTR("Serial"));
		 	lcd_put_fString(4, 22, PSTR("USB"));
	 	
		 	lcd_box(SCRN_LEFT+5,38,SCRN_RIGHT-5,58);
		 	lcd_put_fString(lcd_fcenter(PSTR("These features not")), 40, PSTR("These features not"));
		 	lcd_put_fString(lcd_fcenter(PSTR("availiable yet")), 49, PSTR("availiable yet"));
				
			if(currentPos == 0){lcd_invert_area(3, 12, 39, 20);}
			else if(currentPos == 1){lcd_invert_area(3, 21, 21, 29);}
			lcd_update(SCRN_TOP,SCRN_BOTTOM);
			upDate = 1;
		}
 		// End display
		 
        uio_Get();
		switch(currentPos){
        case 0:
            if(cButton == IO_RIGHT){;}
            else if(cButton == IO_ENTER){;}
            else if(cButton == IO_DOWN)
			{
				nextPos = 1;
			}
        	break;
        case 1:
            if(cButton == IO_RIGHT){;}
            else if(cButton == IO_ENTER){;}
            else if(cButton == IO_UP)
			{
				nextPos = 0;
			}
        	break;
        default:
        	break;
        }
        if(cButton>0 && cButton<6){uio_Release();}
    }
    uio_Release();
}





 
        
  
  

⌨️ 快捷键说明

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