?? key.h
字號:
/******************************************************************
本程序只供學習使用,未經作者許可,不得用于其它任何用途
歡迎訪問我的USB專區:http://group.ednchina.com/93/
歡迎訪問我的blog: http://www.ednchina.com/blog/computer00
http://computer00.21ic.org
感謝PCB贊助商——電子園: http://bbs.cepark.com/
KEY.H file
作者:電腦圈圈
建立日期: 2008.06.27
修改日期: 2008.06.27
版本:V1.1
版權所有,盜版必究。
Copyright(C) 電腦圈圈 2008-2018
All rights reserved
*******************************************************************/
#ifndef __KEY_H__
#define __KEY_H__
#include <at89x52.h>
#include "MyType.h"
extern volatile uint8 idata KeyCurrent,KeyOld,KeyNoChangedTime;
extern volatile uint8 idata KeyPress;
extern volatile uint8 idata KeyDown,KeyUp,KeyLast;
extern volatile uint8 KeyCanChange;
void InitKeyboard(void);
#define KeyIO P1
//獲取按鍵值的宏。由于開關按下為0,所以對結果取反
#define GetKeyValue() (~KeyIO)
#define KEY1 0x01
#define KEY2 0x02
#define KEY3 0x04
#define KEY4 0x08
#define KEY5 0x10
#define KEY6 0x20
#define KEY7 0x40
#define KEY8 0x80
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -