key_test.c
来自「这是一个基于硬件平台s3c44B0和操作系统为ucos的矩阵键盘的程序」· C语言 代码 · 共 47 行
C
47 行
#include "stdio.h"
#include "key.h"
#include "uart_lib.h"
//#include "LCD_12232.h"
//#include "test.h"
void KeyQuery(void)
{
char ch;
//char message[16];
ch = GetKey();
/*
*/
if(ch)
{
UART0_Printf( "Key %d Press!\n",ch) ;
//LCD_ClearDisplay();
//sprintf(message, "Key %02d pressed!", ch );
//LCD_DispString(message,2,1);
}
switch(ch)
{
case 6:
TestReg();
break;
case 7:
TestMove();
break;
case 8:
TestCIPL();
break;
case 9:
//TestFunction();
break;
case '9':
//TestFunction();
break;
default:
break;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?