44blib.c

来自「开发环境:ADS 1.2/SDT 2.51 GUI测试」· C语言 代码 · 共 43 行

C
43
字号
/************************************************
 * NAME    : 44BLIB.C				            *
 ************************************************/


#include "44b.h"
#include "44blib.h"
#include "def.h"
#include "option.h"

#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>




/************************* GetKey *******************************/
U8 GetKey(void)
{
	U8 whichkey=0xf0;
//	whichkey=rPDATG&0xf0;
//	Delay(1000);
//	if(whichkey!=rPDATG&0xf0)
//		whichkey=0xf0;
	switch(whichkey)
    {
	case 0xe0:
	    return 1;
	case 0xd0:
	    return 2;
	case 0xb0:
	    return 3;
	case 0x70:
	    return 4;
	default :
	    return 0xff;
    }
}
        

⌨️ 快捷键说明

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