?? main.c
字號:
#include <intrins.h>
#include <sm5964.h>
#include "UART.h"
#include "T0.h"
#include "my_type.h"
#include "1302.h"
#include "6961.h"
#include "debug.h"
//extern uint8 read_rtc_code[7];
/***********************************************************************/
sbit SPK = P4^0;
bit debug=0;
/***********************************************************************/
void main(void)
{
InitUART();
//Init_1302();
//InitT0();
EA=1;
//Set_6961();
//debug=1;
if(debug)
{
try();
}
while(1)
{
uint8 i,j ;
i=Key_value();
//i=Read_key_6961();
if(i)
{
UartPutChar(i);
}
j=i=0x00;
/*
dsplay_dat[0]=A_DSP;
dsplay_dat[1]=B_DSP;
dsplay_dat[2]=C_DSP;
dsplay_dat[3]=D_DSP;
dsplay_dat[4]=E_DSP;
dsplay_dat[5]=F_DSP;
dsplay_dot[0]=1;
dsplay_dot[1]=1;
dsplay_dot[2]=1;
dsplay_dot[3]=1;
dsplay_dot[4]=1;
dsplay_dot[5]=1;
Dsplay(); */
/*j=i;
Read_RTC();
i=read_rtc_code[0];//Read_1302(0x81);//
if(j!=i)
{
UartPutChar(read_rtc_code[0]);
}
*/
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -