文件名称:KeyBoard
介绍说明--下载内容来自于网络,使用问题请自行百度
键盘功能模块 函数名:KeyAction
* 描 述:按键动作的实现函数,根据键码执行相应动作-#define _KEY_BOARD_C
#include "config.h"
#include "main.h"
#include "KeyBoard.h"
#include "UartCom.h"
#include "PCF8591.h"if (buff[0] <= 9) {
buff[0]+= 0
}
else {
buff[0]+= ( A -10)
}
buff[1] = keycode & 0xF
if (buff[1] <= 9) {
buff[1]+= 0
}
else {
buff[1]+= ( A -10)
}
/* 键码由串口发送*/
buff[2] = \r
buff[3] = \n
* 描 述:按键动作的实现函数,根据键码执行相应动作-#define _KEY_BOARD_C
#include "config.h"
#include "main.h"
#include "KeyBoard.h"
#include "UartCom.h"
#include "PCF8591.h"if (buff[0] <= 9) {
buff[0]+= 0
}
else {
buff[0]+= ( A -10)
}
buff[1] = keycode & 0xF
if (buff[1] <= 9) {
buff[1]+= 0
}
else {
buff[1]+= ( A -10)
}
/* 键码由串口发送*/
buff[2] = \r
buff[3] = \n
(系统自动生成,下载前可以参看下载内容)
下载文件列表
KeyBoard.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.