NAR-5620 Series
User
’
s
Manual
45
4.3.10 Sample Codes
/* *************************************
* EZIO RS232 LCD Control Sample Program
* *************************************
* *************************************************************************
* Company:
Portwell Inc.
* Date:
4/16/2003
* Program:
02A.c
* Version:
1.02
* Compile:
Linux GNU C
* Purpose:
Direct access to EZIO LCD, the program will display
*
messages according to the control button. The current
*
version only has the following function:
*
*
1: display welcome message
*
2: display UP message if "scroll up" button is pressed
*
3: display ENTER message if "ENTER" button is pressed
*
4: display ESC message if "ESC" button is pressed
*
5: display DOWN message if "scroll down" button is pressed
*
* Program Overview:
*
*
- Parameters:
*
fd
: a file name for open() method, here represents the com port
*
Cmd
: command prefix
*
cls
: clear command
*
init
: initialize command
*
blank
: display blank screen
*
stopsend
: stop input/output
*
home
: move cursor to initial position
*
readkey
: set to read from EZIO
*
hide
: hide cursor & display blanked characters
*
movel
: move cursor one character left
*
mover
: move cursor one character right
*
turn
: turn on blinking-block cursor
*
show
: turn on underline cursor
*
scl
: scroll cursor one character left