?? main.c
字號(hào):
#include "Include.h"
extern unsigned char xdata SCC; //串口接收和校驗(yàn)
extern unsigned char xdata CommBuf[MAX_BUF_NUMBER]; //串口緩沖
extern unsigned char FingerRecord[26]; //指紋記錄數(shù)組,每位代表對(duì)應(yīng)編號(hào)指紋有無(wú)
extern unsigned char NowKey; //當(dāng)前按鍵
extern unsigned char Rx_Cnt; //串口接收計(jì)數(shù)器
extern bit ReceiveOK; //數(shù)據(jù)包接收完成標(biāo)志位
//使能全局中斷
void EnableInterrupt(void)
{
EA = 1;
}
//初始化系統(tǒng)外設(shè)
void SystemInit(void)
{
FingerInit();
UARTInit();
Timer0Init();
// BellInit();
LedInit();
SOUND_INIT();
INIT_MOTOR();
PLAY_G();
//開(kāi)全局中斷
EnableInterrupt();
//上電提示
// BellOn();
LedRedOn();
LedBlueOn();
DelayNmS(200);
LedRedOff();
LedBlueOff();
// BellOff();
}
void main(void)
{
SystemInit();
while(1)
{
switch (NowKey)
{
case ADD_KEY: AddFingerModule(); NowKey = NO_KEY;break;
case EMPTY_KEY: EmptyFingerModule(); NowKey = NO_KEY;break;
case SEARCH_KEY: SearchFingerModule(); break;
default: break;
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -