📄 key.h
字号:
/******************************************************************
本程序只供学习使用,未经作者许可,不得用于其它任何用途
我的邮箱:computer-lov@tom.com
欢迎访问我的blog: http://computer00.21ic.org
KEY.H file
作者:Computer-lov
建立日期: 2007.03.20
修改日期: 2007.03.22
版本:V1.1
版权所有,盗版必究。
Copyright(C) Computer-lov 2007-2017
All rights reserved
*******************************************************************/
#ifndef __KEY_H__
#define __KEY_H__
#include "at89x52.h"
#include "MyType.h"
#include "config.h"
extern volatile uint8 idata KeyCurrent,KeyOld,KeyNoChangedTime;
extern volatile uint8 idata KeyPress;
extern volatile uint8 idata KeyDown,KeyUp,KeyLast;
extern volatile uint8 KeyCanChange;
extern volatile uint16 SystemTick;
void InitKeyboard(void);
#define KeyIO P2
#define KEY1 0x01
#define KEY2 0x10
#define KEY3 0x04
#define KEY4 0x08
#define KEY5 0x02
#define KEY6 0x20
#define KEY7 0x40
#define KEY8 0x80
#ifndef LCD
extern uint8 LedBuffer[4];
#endif
#define BEEP P1_7
#define BeepOn() BEEP=0
#define BeepOff() BEEP=1
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -