SystemBuffers.nRFTxBuff[9] = 0x81;//请求命令
for (i = 10; i < 32; i ++) SystemBuffers.nRFTxBuff = 0;
SystemBuffers.nRFTxCount = 32;//要求间接无线发送
for (i = 0; i < 32; i ++) SioBuffers.SioTxBuff = SystemBuffers.nRFTxBuff;
SioBuffers.SioTXCount = 32;//要求间接串口发送
TI = 1;//送串口显示
// LED0 = 0;//压键灯亮
}
}
SystemBuffers.nRFTxBuff[9] = 0x82;//请求
for (i = 10; i < 32; i ++) SystemBuffers.nRFTxBuff = 0;
SystemBuffers.nRFTxCount = 32;//要求间接无线发送
for (i = 0; i < 32; i ++) SioBuffers.SioTxBuff = SystemBuffers.nRFTxBuff;
SioBuffers.SioTXCount = 32;//要求间接串口发送
TI = 1;//送串口显示
// LED1 = 0;//压键灯亮
}
}
SystemBuffers.nRFTxBuff[9] = 0x83;//变址请求
for (i = 10; i < 32; i ++) SystemBuffers.nRFTxBuff = 0;
SystemBuffers.nRFTxCount = 32;//要求间接无线发送
for (i = 0; i < 32; i ++) SioBuffers.SioTxBuff = SystemBuffers.nRFTxBuff;
SioBuffers.SioTXCount = 32;//要求间接串口发送
TI = 1;//送串口显示
// LED2 = 0;//压键灯亮
}
}
SystemBuffers.nRFTxBuff[9] = 0x84;//跳频请求
for (i = 10; i < 32; i ++) SystemBuffers.nRFTxBuff = 0;
SystemBuffers.nRFTxCount = 32;//要求间接无线发送
for (i = 0; i < 32; i ++) SioBuffers.SioTxBuff = SystemBuffers.nRFTxBuff;
SioBuffers.SioTXCount = 32;//要求间接串口发送
TI = 1;//送串口显示
// LED3 = 0;//压键灯亮
}
}
void Key10(void) using 0
{
LED0 = 1;//放键灭灯
}
void Key11(void) using 0
{
LED1 = 1;//放键灭灯
}
void Key12(void) using 0
{
LED2 = 1;//放键灭灯
}
void Key13(void) using 0
{
LED3 = 1;//放键灭灯
}
void Key20(void) using 0
{
LED0 = 1;//长压键灭灯
Key00();//连发
}
void Key21(void) using 0
{
LED0 = 1;//长压键灭灯
Key01();//连发
}
void Key22(void) using 0
{
LED0 = 1;//长压键灭灯
Key02();//连发
}
void Key23(void) using 0
{
LED0 = 1;//长压键灭灯
Key03();//连发
}