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

📄 ps2_test.c

📁 这是一个基于硬件平台s3c44B0和操作系统为ucos的ps2键盘的程序
💻 C
字号:
#include "stdio.h"
#include "uart_lib.h"
#include "ps2.h"

void PS2_test(void)
{
	char ch;
	Uart_Printf("---PS2键盘测试开始---\n");
	
	while(1)
	{
		ps2_buffer_check();	
		ch = PS2_GetKey();
		if(ch=='q' || ch=='Q')
			break;
		if(ch!=0)
			Uart_Printf("Key=%c\n",ch);	
		
	}
	
	Uart_Printf("---PS2键盘测试结束---\n\n");
}

⌨️ 快捷键说明

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