Microcontrollers receiving raw data from zigbee?

Status
Not open for further replies.
hi, the code isn't working. It just show Zigbee on LCD and won't display the data i sent.
 

hi, i written this. But i must send data 5-6times before the LCD will start displaying the data. and when the LCD is displaying the data, it keep repeating. may i know what's wrong with the code.thank you
 

Attachments

  • working3.txt
    2.2 KB · Views: 40

It's in the void LCD_DisplayString(char *String).
 

Yes, I see that code but I don't see any code which prints RTC data to LCD. You posted the old file. Add LCD code to the new code which I gave.


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void LCD_DisplayString(char *String)
{
    int i = 0;
    while (*String)
    {
        LCD_WriteDataReg(*String++);
    }
}
 
 
// In while(1) loop
 
// LCD Cmd 0xC0 here
LCD_WriteDataReg(infor[1]);
 
LCD_WriteDataReg(min / 10);
LCD_WriteDataReg(min % 10);

 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…