Menu

LCD with more than 2 lines

2010-08-08
2013-05-30
  • Remowylliams

    Remowylliams - 2010-08-08

    Hello I'm using a LCD display that's 4X16 instead of 2x16, it uses the same chip I believe as the lcd function is suppose to talk to.
    using locate, if I want to position something that is on line 0 or 1, it works as it should

    But Locate 2,0 plunks my first character at line 2(the third line) but the 0 character position is 4 (the fifth character), this happens
    with Locate 3,0 as well.

     
  • kent_twt4

    kent_twt4 - 2010-08-08

    Check out the lcd.h file in the include folder of GCBasic.  The library presumes that a display over two lines is a 20x4 display, which is what your output confirms.  Try changing the locate sub to reflect the 16 wide display, and save it:

    LCDColumn = LCDColumn + 16
    
     
  • Remowylliams

    Remowylliams - 2010-08-08

    Kent,
      Thanks very much. that fixed it.

    Remo

     

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.