16f687 - Where is the data stored?


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: 16f687 - Where is the data stored?

    Why not clear the screen, move the cursor to the first position, print the message?
    Code:
    CursorPos VAR BYTE          ' 0=first line first char, 64=second line first char (I think, usally...)
    
    CursorPos = 1
    GOSUB Clear_and_set_cursor
    LCDOUT "Report to pit"
    
    Pause 2000
    
    CursorPos = 5
    GOSUB Clear_and_set_cursor
    LCDOUT "STOP"
    
    ' and so on
    
    END
    
    Clear_and_set_cursor:
       LCDOUT $FE, 1, $FE, ($80 + cursorposition)
       RETURN
    /Henrik.

  2. #2
    Join Date
    Jan 2012
    Location
    Grid EN19MV
    Posts
    159


    Did you find this post helpful? Yes | No

    Default Re: 16f687 - Where is the data stored?

    Quote Originally Posted by HenrikOlsson View Post
    Why not clear the screen, move the cursor to the first position, print the message?
    /Henrik.
    Exactly what I plan on doing. Since each line is usually somewhat less than 16 characters, though, I want to have some leading spaces to bring each line to the center of the display. I'll just calculate how many characters less than 16 a line is, then divide that by two and use that as my pad in the front.

    I just figure having it centered makes it easier for the driver to read when he's going fast a trying to avoid someone else.

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