Site hosted by Angelfire.com: Build your free website today!
Lesson 4 - Disp and Outpt


 

    If there is a basis for all programs, it's these to commands.  These help you display things on the home screen.  Disp takes less time than outpt, put outpt can be used to move things on the home screen.  First theres Disp:

:ClLCD              ;Clears the home screen
:Disp "Hello"    ;Displays hello
:Pause               ;Pause to allow the user to read

    The command "Disp" will display things up to 21 characters.  After 21, you must put a comma, a quote, and type again.

:ClLCD
:Disp "Hello how are you I","am fine I hope you","have a good day like","I am having!"
:Puase

    The closing parentheses, comma, and opening parentheses will display text on the next line.

    Outpt is more powerful than Disp.  It's written as the following:

:ClLCD
:Outpt(5,2,"Hello"
:Pause

    Outpt allows you to specify row (5) and column (2).  If you assign variables to the outpt location, you can move things (next lesson).