Nov 11, 2013 #41 G gabriellimhj Junior Member level 3 Joined Oct 30, 2013 Messages 30 Helped 0 Reputation 0 Reaction score 0 Trophy points 6 Activity points 181 hi, the code isn't working. It just show Zigbee on LCD and won't display the data i sent.
Nov 11, 2013 #42 jayanth.devarayanadurga Banned Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Activity points 0 Yes, I have not written code to display data on LCD.
Nov 11, 2013 #43 G gabriellimhj Junior Member level 3 Joined Oct 30, 2013 Messages 30 Helped 0 Reputation 0 Reaction score 0 Trophy points 6 Activity points 181 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
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
Nov 11, 2013 #44 jayanth.devarayanadurga Banned Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Activity points 0 I don't see any LCD write code in your program.
Nov 11, 2013 #45 G gabriellimhj Junior Member level 3 Joined Oct 30, 2013 Messages 30 Helped 0 Reputation 0 Reaction score 0 Trophy points 6 Activity points 181 It's in the void LCD_DisplayString(char *String).
Nov 11, 2013 #46 jayanth.devarayanadurga Banned Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Activity points 0 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);
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);