Page 1 of 1

funy characters

Posted: Fri Sep 03, 2004 11:15 pm
by igeorge
I used an other display before i decided to try lcd2041
On my stamp program i have all the messages stored in the eeprom with an 0 ( zero ) at the end of string to define the end.
ex:
msg0 DATA @0,254,88,254,71,1,1,"[L] LABELS MENU",254,71,1,2, "[C] CONTACT INFO",0

The message is displayed ok, BUT, the last character after INFO word is a small 90 degrees triangle like which is 5 dots wide and 5 dots tall . This is annoying and i can not get rid of it. The only way to display without it is to change the zero with a CR. Unfortunately, i can not do that because it is to much to change the whole code from 0 to CR. Some of the subroutines use that zero but they refuse to work with CR.
I need help, as i bought 5 LCD which i can not use.
Thank you
Ion

Posted: Tue Sep 07, 2004 10:51 am
by Tom
What is the 0 at the end of your code for?

Posted: Tue Sep 07, 2004 8:56 pm
by igeorge
Tom wrote:What is the 0 at the end of your code for?
The 0 at the end is a string delimiter. When reading the message from the eeprom, if the 0 is found , the rpocessor stop reading and it knows that is the end of the message to read from the eeprom.
Ion

Posted: Tue Sep 14, 2004 9:52 am
by Miles
I understand the "0" is a string delimiter, but our display is responding to the byte as unidentified. I would expect the display to respond with a "0", rather than a garbage character. Can you seperate the string delimiter from the rest of the output to the display...?