?? button.h
字號:
/* ATmega103 button.h file
Author : Robert Stuart
Company : PDL Industries Ltd
Date of Creation : 26 August 1999
*/
/* includes */
#include <iom103.h>
#include "logic.h"
#include "ports.h"
/* External Variables */
extern enum
{
SET=1,
UP,
DOWN,
BUTTON_NONE
} Button;
extern char ButtonStatus;
/* Local Variables */
static unsigned int Buffer;
static enum ButtonMap
{
SET_MAP=1,
UP_MAP,
DOWN_MAP,
NONE_MAP
}; /* the buttons will exist in one of these states */
static enum ButtonMap PushedButton, LastButton;
/* used to controll the triggering of the buttons */
/* Local Prototypes */
void BufferButton( void );
void DebounceButton( void );
void DetermineButtonState( void );
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -