Newhaven Display Forum

Newhaven Products => Character LCDs => Topic started by: whAtlGa on July 06, 2016, 09:40:04 PM

Title: NHD-C0220Biz-FSW adds character 0x11 at begining of line
Post by: whAtlGa on July 06, 2016, 09:40:04 PM
I probably missed something in the data sheet or in the set up.  Every time I have more that 16 characters on a line I get a symbol at the start of the line that looks like a cross or character 0x11 shown on page 10 of the data sheet.  Happens on both the 1st line and 2nd line. 

Update: After trying different lengths I get character 0x10 at 16 characters and it increases by one the longer the line goes. The text I send is displayed correctly there is just this extra character at the beginning of the line.

Title: Re: NHD-C0220Biz-FSW adds character 0x11 at begining of line
Post by: Saurabh_B on July 08, 2016, 12:09:19 PM
Would it be possible to share the portion of the code where you are sending the characters?

At many times random characters may appear when there is a timing issue. How fast are you writing to the display, and are you allowing a delay after every command?
Title: Re: NHD-C0220Biz-FSW adds character 0x11 at begining of line
Post by: whAtlGa on July 08, 2016, 09:31:31 PM
That does seem to be the case.  The configuration went to the module a byte at the time but the text was handled with block writes.  I changed them to this
for x in range (0,len(Line1)):
     bus.write_byte_data(LCD,0x40,Line1

That resolved the issue.

Thank you for your assistance.
Title: Re: NHD-C0220Biz-FSW adds character 0x11 at begining of line
Post by: Saurabh_B on July 11, 2016, 08:20:40 AM
Glad to see you have it working properly.  8)