py-b.c
来自「一种电话遥控板的原程序」· C语言 代码 · 共 45 行
C
45 行
#include "pubDcl.dcl"
#include "reg52.h"
#include "extio.h"
#include "valuedef.h"
#include "display.c"
#include "otimer.c"
#include "otelc1.c"
#include "tts_send_str.c"
#include "ht9200.c"
//#include "callid.c"
#include "serial.c"
#include "otelc.c"
#include "Analyse.c"
void SysInit()
{
// P0=0xff;
P0=0xef;
P1=0xaf;
P2=0xff;
P3=0xff;
disp_Init();
OTel_RP_Init() ;
Phone_ToneCtrl(FALSE) ;
check_Init() ;
Serial_DealInit() ;
Sys_TimerInit() ;
Serial_Init() ;
Serial_SendCommand("PY-B PHONE------BJDZ",20) ;
}
void main()
{
uchar temp ;
SysInit() ;
// delay(500) ;
while(1)
{
OTel_RP_Check() ;
if(GetSerialData(&temp) == 1)
{
Serial_Deal(temp) ;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?