📄 keyboard_test.c
字号:
#include "LPC2468.h" /* LPC24xx definitions */
#include "type.h"
#include "irq.h"
#include "target.h"
#include "timer.h"
#include "fio.h"
#include "keyboard.h"
#include "uart0.h"
/*****************************************************************************
** Main Function main()
******************************************************************************/
int main (void)
{
unsigned char keyvalue=0,char_buf[]="Key has pressed!\r\n";
TargetResetInit();
enable_timer(0);
Key_Init();
LedsInit();
UART0Init(9600);
while ( 1 )
{
/* 此处代码请自己编写 */
}
}
/*****************************************************************************
** End Of File
*****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -