LCD_LINES Question Help ?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237

    Exclamation LCD_LINES Question Help ?

    Thank you for reading

    Quick Question to confirm...

    "Set number of lines on LCD
    DEFINE LCD_LINES 2 "

    Does the above mean define 2 line display

    or

    DEFINE LCD_LINES 1 (2 Line Display)
    DEFINE LCD_LINES 2 (4 LINE Display)

    Manual is not clear.... Various info around internet ?

    BR
    Andy

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: LCD_LINES Question Help ?

    Andy, this is the routine I use for a 4 line LCD on my EasyPIC5 board

    Code:
    DEFINE LCD_DREG  PORTB                  ' LCD Data port
    DEFINE LCD_DBIT  0                      ' starting Data bit (0 or 4)
    DEFINE LCD_EREG  PORTB                  ' LCD Enable port
    DEFINE LCD_EBIT  5                      '     Enable bit  (on EasyPIC 5 LCD)
    DEFINE LCD_RSREG PORTB                  ' LCD Register Select port
    DEFINE LCD_RSBIT 4                      '     Register Select bit   (on EasyPIC 5 LCD)
    DEFINE LCD_BITS  4                      ' LCD bus size (4 or 8 bits)
    DEFINE LCD_LINES 4                      ' number of lines on LCD
    DEFINE LCD_COMMANDUS 2000               ' Command delay time in us 
    DEFINE LCD_DATAUS 50                    ' Data delay time in us



    If you have a 2 x 16 or 2 x 20 LCD then change the DEFINE LCD_LINES 4 to DEFINE LCD_LINES 2

  3. #3
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: LCD_LINES Question Help ?

    Hi Scampy

    So for 2 lines ........LCD_LINES 2

    Thank you

    Andy

  4. #4
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: LCD_LINES Question Help ?

    Hi Andy,

    That's correct.

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts