void LoraTestData()
{
OLED_ShowStr(0,0," Node1 ReData",2);
OLED_ShowStr(0,3,"Temp: ",2);
OLED_ShowStr(100,3,"C",2);
OLED_ShowStr(0,6,"Humi: ",2);
OLED_ShowStr(100,6,"H",2);
if(LoraUartRxSta&0x8000)
{
loradata.LoraId[0] = LoraUartRxBuf[0];
loradata.LoraId[1] = LoraUartRxBuf[1];
loradata.LoraId[2] = LoraUartRxBuf[2];
loradata.TempData[0] = LoraUartRxBuf[3];
loradata.TempData[1] = LoraUartRxBuf[4];
loradata.TempData[2] = LoraUartRxBuf[5];
loradata.HumiData[0] = LoraUartRxBuf[6];
loradata.HumiData[1] = LoraUartRxBuf[7];
loradata.HumiData[2] = LoraUartRxBuf[8];
if((loradata.LoraId[0]=='#')&&(loradata.LoraId[1]=='0')&&(loradata.LoraId[2]=='1'))
{
OLED_ShowChar(60,3,loradata.TempData[0],2);
OLED_ShowChar(68,3,loradata.TempData[1],2);
OLED_ShowChar(76,3,loradata.TempData[2],2);
OLED_ShowChar(60,6,loradata.HumiData[0],2);
OLED_ShowChar(68,6,loradata.HumiData[1],2);
OLED_ShowChar(76,6,loradata.HumiData[2],2);
}
LoraUartRxSta =0;
}
} |