Menu

Problem with Newhaven LCD, Double Spaced Text

Help
Rex Knepp
2009-10-29
2013-05-30
  • Rex Knepp

    Rex Knepp - 2009-10-29

    I am having two problems with an NHD-026BZ-FL-YBW 2x16 LCD display.  I have attached it to an 18F4525.  The first problem is that the text is displaying as double spaced (Print "Hello" results in "H e l l o").  The second problem is that I can't get anything to appear on the second line.  If I use "Locate 2,1" and then do a print, the output just goes into the bit bucket.  Anyone our there have any suggestions?  Thanks a bunch!

         'Chip model
        #chip 18f4525,20
        #config OSC=HS
        'LCD connection settings
       
        #define LCD_IO 8
        #define LCD_DATA_PORT PORTD
        #define LCD_RS PORTC.0
        #define LCD_RW PORTC.1
        #define LCD_Enable PORTC.2
        CLS
        PRINT "Hello World"

     
  • Nobody/Anonymous

    On the LCDs I've used the lines are labeled 0 amd 1.
    So use locate 0,1 for the first line and locate 1,1 for the second.
    Not sure what is causing the double spacing though.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.