Lcd Control Codes - Toshiba SG20 - Magnia - Web Server Customization Manual

General customization guide
Hide thumbs Also See for SG20 - Magnia - Web Server:
Table of Contents

Advertisement

Customization

LCD Control Codes

In addition to direct transmission of characters to the LCD, there are several special
command sequences that can be sent to the LCD controller. These sequences are
designed to ease formatting and manipulation of the LCD display. All command
sequences begin with the escape character, and are following by a character indicating a
specific action.
The following table shows the available escape command sequences and their uses.
Received Character
'H'
'X'
'B'
'b'
<sec>'q'
Examples of the use of these commands appear below:
To send the LCD cursor to the top row, far left character position:
echo –n –e "\033H" > /dev/ttyS0
To clear the LCD display:
echo –n –e "\033X" > /dev/ttyS0
To turn off the backlight of the LCD display:
echo –n –e "\033b" > /dev/ttyS0
To shut the power of the system off in 10 seconds:
echo –n –e "\03310q" > /dev/ttyS0
The preceeding power-off command should not be issued unless the operating system is
being shut down in an orderly manner. Sufficient time should be given for the OS to
complete its shutdown procedures.
Name
Home the cursor.
Clear the display.
Turn on the backlight
Turn off the backlight
Power down the system in <sec>
seconds. Should only be sent at end
of the shutdown sequence.
LCD panel customization
Operation
35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents