Clear Second Line On LCD


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    60

    Default Clear Second Line On LCD

    How do I clear just the second line of a 2x16 LCD?

  2. #2
    Join Date
    Feb 2009
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    One way would be to blank it.

    Code:
    LCDOUT $FE, $C0, "                "
    other fun codes:

    $FE, 1
    Clear display

    $FE, 2
    Return home (beginning of first line)

    $FE, $0C
    Cursor off

    $FE, $0E
    Underline cursor on

    $FE, $0F
    Blinking cursor on

    $FE, $10
    Move cursor left one position

    $FE, $14
    Move cursor right one position

    $FE, $C0
    Move cursor to beginning of second line

    $FE, $94
    Move cursor to beginning of third line

    $FE, $D4
    Move cursor to beginning of fourth line

  3. #3
    Join Date
    Jun 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    Just blanking it worked fine. Was thinking way to hard about that!! Thanks

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    You should also be able to use REP modifier in LCDOUT... REP " "\16
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  3. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

Members who have read this thread : 0

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

Posting Permissions

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